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

#include <variable.hpp>

Classes

struct  pointer_proxy
 

Public Types

typedef const std::pair< std::string, vconfigvalue_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef int difference_type
 
typedef const pointer_proxy pointer
 
typedef const value_type reference
 
typedef config::const_all_children_iterator Itor
 

Public Member Functions

 all_children_iterator (const Itor &i)
 
 all_children_iterator (const Itor &i, const std::shared_ptr< const config > &cache)
 
all_children_iteratoroperator++ ()
 
all_children_iterator operator++ (int)
 
all_children_iteratoroperator-- ()
 
all_children_iterator operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
std::string get_key () const
 
vconfig get_child () const
 
void disable_insertion ()
 
bool operator== (const all_children_iterator &i) const
 
bool operator!= (const all_children_iterator &i) const
 

Private Attributes

Itor i_
 
int inner_index_
 
std::shared_ptr< const configcache_
 

Detailed Description

Definition at line 135 of file variable.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 141 of file variable.hpp.

◆ iterator_category

typedef std::bidirectional_iterator_tag vconfig::all_children_iterator::iterator_category

Definition at line 140 of file variable.hpp.

◆ Itor

Definition at line 144 of file variable.hpp.

◆ pointer

Definition at line 142 of file variable.hpp.

◆ reference

Definition at line 143 of file variable.hpp.

◆ value_type

typedef const std::pair<std::string, vconfig> vconfig::all_children_iterator::value_type

Definition at line 137 of file variable.hpp.

Constructor & Destructor Documentation

◆ all_children_iterator() [1/2]

vconfig::all_children_iterator::all_children_iterator ( const Itor i)
explicit

Definition at line 339 of file variable.cpp.

Referenced by vconfig::ordered_begin(), and vconfig::ordered_end().

◆ all_children_iterator() [2/2]

vconfig::all_children_iterator::all_children_iterator ( const Itor i,
const std::shared_ptr< const config > &  cache 
)

Definition at line 344 of file variable.cpp.

Member Function Documentation

◆ disable_insertion()

void vconfig::all_children_iterator::disable_insertion ( )
inline

Definition at line 158 of file variable.hpp.

References i, and operator==().

Referenced by lua_common::impl_vconfig_get().

◆ get_child()

vconfig vconfig::all_children_iterator::get_child ( ) const

◆ get_key()

std::string vconfig::all_children_iterator::get_key ( ) const

◆ operator!=()

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

Definition at line 161 of file variable.hpp.

References operator==().

◆ operator*()

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

Definition at line 400 of file variable.cpp.

References get_child(), and get_key().

◆ operator++() [1/2]

vconfig::all_children_iterator & vconfig::all_children_iterator::operator++ ( )

◆ operator++() [2/2]

vconfig::all_children_iterator vconfig::all_children_iterator::operator++ ( int  )

Definition at line 374 of file variable.cpp.

References i, and operator++().

◆ operator--() [1/2]

vconfig::all_children_iterator & vconfig::all_children_iterator::operator-- ( )

Definition at line 381 of file variable.cpp.

References i_, and inner_index_.

Referenced by operator--().

◆ operator--() [2/2]

vconfig::all_children_iterator vconfig::all_children_iterator::operator-- ( int  )

Definition at line 393 of file variable.cpp.

References i, and operator--().

◆ operator->()

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

Definition at line 405 of file variable.cpp.

References get_child(), get_key(), and p.

◆ operator==()

bool vconfig::all_children_iterator::operator== ( const all_children_iterator i) const

Definition at line 440 of file variable.cpp.

References i_, and inner_index_.

Member Data Documentation

◆ cache_

std::shared_ptr<const config> vconfig::all_children_iterator::cache_
private

Definition at line 178 of file variable.hpp.

Referenced by get_child(), vconfig::ordered_begin(), and vconfig::ordered_end().

◆ i_

Itor vconfig::all_children_iterator::i_
private

Definition at line 165 of file variable.hpp.

Referenced by get_child(), get_key(), operator++(), operator--(), and operator==().

◆ inner_index_

int vconfig::all_children_iterator::inner_index_
private

Definition at line 177 of file variable.hpp.

Referenced by get_child(), get_key(), operator++(), operator--(), and operator==().


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