The Battle for Wesnoth  1.15.0-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 int difference_type
 
typedef attributepointer
 
typedef attributereference
 
typedef attribute_map::iterator Itor
 

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 229 of file config.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 233 of file config.hpp.

◆ iterator_category

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

Definition at line 232 of file config.hpp.

◆ Itor

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

Definition at line 236 of file config.hpp.

◆ pointer

Definition at line 234 of file config.hpp.

◆ reference

Definition at line 235 of file config.hpp.

◆ value_type

Definition at line 231 of file config.hpp.

Constructor & Destructor Documentation

◆ attribute_iterator()

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

Definition at line 237 of file config.hpp.

Member Function Documentation

◆ operator!=() [1/2]

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

Definition at line 248 of file config.hpp.

References config::child_iterator::i_, and i_.

◆ operator!=() [2/2]

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

Definition at line 250 of file config.hpp.

◆ operator*()

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

Definition at line 244 of file config.hpp.

References config::child_iterator::i_.

◆ operator++() [1/2]

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

Definition at line 239 of file config.hpp.

References config::child_iterator::i_.

◆ operator++() [2/2]

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

Definition at line 240 of file config.hpp.

References config::child_iterator::i_.

◆ operator--() [1/2]

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

Definition at line 241 of file config.hpp.

References config::child_iterator::i_.

◆ operator--() [2/2]

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

Definition at line 242 of file config.hpp.

References config::child_iterator::i_.

◆ operator->()

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

Definition at line 245 of file config.hpp.

References config::child_iterator::i_.

◆ operator==() [1/2]

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

Definition at line 247 of file config.hpp.

References config::child_iterator::i_, and i_.

◆ operator==() [2/2]

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

Definition at line 249 of file config.hpp.

Friends And Related Function Documentation

◆ config::const_attribute_iterator

friend struct config::const_attribute_iterator
friend

Definition at line 253 of file config.hpp.

Member Data Documentation

◆ i_

Itor config::attribute_iterator::i_
private

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