The Battle for Wesnoth  1.19.5+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, const variable_set &vars)
 
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_
 
const variable_setvariables_
 

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 106 of file variable.hpp.

Constructor & Destructor Documentation

◆ attribute_iterator()

vconfig::attribute_iterator::attribute_iterator ( const Itor i,
const variable_set vars 
)
inlineexplicit

Definition at line 112 of file variable.hpp.

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

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, and i_.

◆ operator*()

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

Definition at line 359 of file variable.cpp.

References i_, and variables_.

◆ operator++() [1/2]

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

Definition at line 114 of file variable.hpp.

References i_.

◆ operator++() [2/2]

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

Definition at line 115 of file variable.hpp.

References attribute_iterator(), i_, and variables_.

◆ operator--() [1/2]

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

Definition at line 117 of file variable.hpp.

References i_.

◆ operator--() [2/2]

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

Definition at line 118 of file variable.hpp.

References attribute_iterator(), i_, and variables_.

◆ operator->()

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

Definition at line 366 of file variable.cpp.

References p, and vconfig::variables_.

◆ operator==()

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

Definition at line 123 of file variable.hpp.

References i, and i_.

Member Data Documentation

◆ i_

Itor vconfig::attribute_iterator::i_
private

Definition at line 127 of file variable.hpp.

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

◆ variables_

const variable_set* vconfig::attribute_iterator::variables_
private

Definition at line 128 of file variable.hpp.

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


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