The Battle for Wesnoth  1.19.7+dev
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
config::attribute_iterator Struct Reference

#include <config.hpp>

Public Types

typedef attribute value_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef attributepointer
 
typedef attributereference
 
typedef attribute_map::iterator Itor
 
typedef Itor::difference_type difference_type
 

Public Member Functions

 attribute_iterator (const Itor &i)
 
attribute_iteratoroperator++ ()
 
attribute_iterator operator++ (int)
 
attribute_iteratoroperator-- ()
 
attribute_iterator operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const attribute_iterator &i) const
 
bool operator!= (const attribute_iterator &i) const
 
bool operator== (const const_attribute_iterator &i) const
 
bool operator!= (const const_attribute_iterator &i) const
 

Private Attributes

Itor i_
 

Friends

struct config::const_attribute_iterator
 

Detailed Description

Definition at line 315 of file config.hpp.

Member Typedef Documentation

◆ difference_type

typedef Itor::difference_type config::attribute_iterator::difference_type

Definition at line 322 of file config.hpp.

◆ iterator_category

typedef std::bidirectional_iterator_tag config::attribute_iterator::iterator_category

Definition at line 318 of file config.hpp.

◆ Itor

typedef attribute_map::iterator config::attribute_iterator::Itor

Definition at line 321 of file config.hpp.

◆ pointer

Definition at line 319 of file config.hpp.

◆ reference

Definition at line 320 of file config.hpp.

◆ value_type

Definition at line 317 of file config.hpp.

Constructor & Destructor Documentation

◆ attribute_iterator()

config::attribute_iterator::attribute_iterator ( const Itor i)
inlineexplicit

Definition at line 323 of file config.hpp.

Referenced by operator++(), and operator--().

Member Function Documentation

◆ operator!=() [1/2]

bool config::attribute_iterator::operator!= ( const attribute_iterator i) const
inline

Definition at line 334 of file config.hpp.

References i, and i_.

◆ operator!=() [2/2]

bool config::attribute_iterator::operator!= ( const const_attribute_iterator i) const
inline

Definition at line 336 of file config.hpp.

References i.

◆ operator*()

reference config::attribute_iterator::operator* ( ) const
inline

Definition at line 330 of file config.hpp.

References i_.

◆ operator++() [1/2]

attribute_iterator& config::attribute_iterator::operator++ ( )
inline

Definition at line 325 of file config.hpp.

References i_.

◆ operator++() [2/2]

attribute_iterator config::attribute_iterator::operator++ ( int  )
inline

Definition at line 326 of file config.hpp.

References attribute_iterator(), and i_.

◆ operator--() [1/2]

attribute_iterator& config::attribute_iterator::operator-- ( )
inline

Definition at line 327 of file config.hpp.

References i_.

◆ operator--() [2/2]

attribute_iterator config::attribute_iterator::operator-- ( int  )
inline

Definition at line 328 of file config.hpp.

References attribute_iterator(), and i_.

◆ operator->()

pointer config::attribute_iterator::operator-> ( ) const
inline

Definition at line 331 of file config.hpp.

References i_.

◆ operator==() [1/2]

bool config::attribute_iterator::operator== ( const attribute_iterator i) const
inline

Definition at line 333 of file config.hpp.

References i, and i_.

◆ operator==() [2/2]

bool config::attribute_iterator::operator== ( const const_attribute_iterator i) const
inline

Definition at line 335 of file config.hpp.

References i.

Friends And Related Function Documentation

◆ config::const_attribute_iterator

friend struct config::const_attribute_iterator
friend

Definition at line 339 of file config.hpp.

Member Data Documentation

◆ i_

Itor config::attribute_iterator::i_
private

Definition at line 340 of file config.hpp.

Referenced by operator!=(), operator*(), operator++(), operator--(), operator->(), and operator==().


The documentation for this struct was generated from the following file: