The Battle for Wesnoth  1.15.0-dev
Public Types | Public Member Functions | Private Attributes | List of all members
config::const_attribute_iterator Struct Reference

#include <config.hpp>

Public Types

typedef const attribute value_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef int difference_type
 
typedef const attributepointer
 
typedef const attributereference
 
typedef attribute_map::const_iterator Itor
 

Public Member Functions

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

Private Attributes

Itor i_
 

Detailed Description

Definition at line 257 of file config.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 261 of file config.hpp.

◆ iterator_category

typedef std::bidirectional_iterator_tag config::const_attribute_iterator::iterator_category

Definition at line 260 of file config.hpp.

◆ Itor

typedef attribute_map::const_iterator config::const_attribute_iterator::Itor

Definition at line 264 of file config.hpp.

◆ pointer

Definition at line 262 of file config.hpp.

◆ reference

Definition at line 263 of file config.hpp.

◆ value_type

Definition at line 259 of file config.hpp.

Constructor & Destructor Documentation

◆ const_attribute_iterator() [1/2]

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

Definition at line 265 of file config.hpp.

◆ const_attribute_iterator() [2/2]

config::const_attribute_iterator::const_attribute_iterator ( attribute_iterator i)
inline

Definition at line 266 of file config.hpp.

Member Function Documentation

◆ operator!=() [1/2]

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

Definition at line 278 of file config.hpp.

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

◆ operator!=() [2/2]

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

Definition at line 280 of file config.hpp.

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

◆ operator*()

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

Definition at line 274 of file config.hpp.

References config::child_iterator::i_.

◆ operator++() [1/2]

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

Definition at line 268 of file config.hpp.

References config::child_iterator::i_.

◆ operator++() [2/2]

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

Definition at line 269 of file config.hpp.

References config::child_iterator::i_.

◆ operator--() [1/2]

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

Definition at line 271 of file config.hpp.

References config::child_iterator::i_.

◆ operator--() [2/2]

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

Definition at line 272 of file config.hpp.

References config::child_iterator::i_.

◆ operator->()

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

Definition at line 275 of file config.hpp.

References config::child_iterator::i_.

◆ operator==() [1/2]

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

Definition at line 277 of file config.hpp.

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

◆ operator==() [2/2]

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

Definition at line 279 of file config.hpp.

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

Member Data Documentation

◆ i_

Itor config::const_attribute_iterator::i_
private

Definition at line 283 of file config.hpp.

Referenced by operator!=(), and operator==().


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