The Battle for Wesnoth  1.19.5+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 const attributepointer
 
typedef const attributereference
 
typedef attribute_map::const_iterator Itor
 
typedef Itor::difference_type difference_type
 

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

Member Typedef Documentation

◆ difference_type

Definition at line 350 of file config.hpp.

◆ iterator_category

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

Definition at line 346 of file config.hpp.

◆ Itor

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

Definition at line 349 of file config.hpp.

◆ pointer

Definition at line 347 of file config.hpp.

◆ reference

Definition at line 348 of file config.hpp.

◆ value_type

Definition at line 345 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 351 of file config.hpp.

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

◆ const_attribute_iterator() [2/2]

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

Definition at line 352 of file config.hpp.

Member Function Documentation

◆ operator!=() [1/2]

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

Definition at line 366 of file config.hpp.

References i, and i_.

◆ operator!=() [2/2]

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

Definition at line 364 of file config.hpp.

References i, and i_.

◆ operator*()

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

Definition at line 360 of file config.hpp.

References i_.

◆ operator++() [1/2]

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

Definition at line 354 of file config.hpp.

References i_.

◆ operator++() [2/2]

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

Definition at line 355 of file config.hpp.

References const_attribute_iterator(), and i_.

◆ operator--() [1/2]

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

Definition at line 357 of file config.hpp.

References i_.

◆ operator--() [2/2]

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

Definition at line 358 of file config.hpp.

References const_attribute_iterator(), and i_.

◆ operator->()

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

Definition at line 361 of file config.hpp.

References i_.

◆ operator==() [1/2]

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

Definition at line 365 of file config.hpp.

References i, and i_.

◆ operator==() [2/2]

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

Definition at line 363 of file config.hpp.

References i, and i_.

Member Data Documentation

◆ i_

Itor config::const_attribute_iterator::i_
private

Definition at line 369 of file config.hpp.

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


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