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

#include <variable.hpp>

Classes

struct  pointer_proxy
 

Public Types

typedef const config::attribute value_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef int difference_type
 
typedef const pointer_proxy pointer
 
typedef const config::attribute reference
 
typedef config::const_attribute_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
 

Private Attributes

Itor i_
 

Detailed Description

Definition at line 102 of file variable.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 108 of file variable.hpp.

◆ iterator_category

typedef std::bidirectional_iterator_tag vconfig::attribute_iterator::iterator_category

Definition at line 107 of file variable.hpp.

◆ Itor

Definition at line 111 of file variable.hpp.

◆ pointer

Definition at line 109 of file variable.hpp.

◆ reference

Definition at line 110 of file variable.hpp.

◆ value_type

Definition at line 104 of file variable.hpp.

Constructor & Destructor Documentation

◆ attribute_iterator()

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

Definition at line 112 of file variable.hpp.

Member Function Documentation

◆ operator!=()

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

Definition at line 124 of file variable.hpp.

References i_.

◆ operator*()

vconfig::attribute_iterator::reference vconfig::attribute_iterator::operator* ( ) const

Definition at line 320 of file variable.cpp.

References resources::gamedata.

◆ operator++() [1/2]

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

Definition at line 114 of file variable.hpp.

◆ operator++() [2/2]

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

Definition at line 115 of file variable.hpp.

◆ operator--() [1/2]

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

Definition at line 117 of file variable.hpp.

◆ operator--() [2/2]

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

Definition at line 118 of file variable.hpp.

◆ operator->()

vconfig::attribute_iterator::pointer vconfig::attribute_iterator::operator-> ( ) const

Definition at line 329 of file variable.cpp.

References resources::gamedata, and p.

◆ operator==()

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

Definition at line 123 of file variable.hpp.

References i_.

Member Data Documentation

◆ i_

Itor vconfig::attribute_iterator::i_
private

Definition at line 127 of file variable.hpp.

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


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