vconfig::all_children_iterator Struct Reference

#include <variable.hpp>

Collaboration diagram for vconfig::all_children_iterator:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::pair< const
std::string, const vconfig
value_type
typedef std::forward_iterator_tag iterator_category
typedef int difference_type
typedef std::auto_ptr< value_typepointer
typedef value_typereference
typedef
config::all_children_iterator 
Itor

Public Member Functions

 all_children_iterator (Itor i=Itor())
all_children_iteratoroperator++ ()
all_children_iterator operator++ (int)
value_type operator* () const
pointer operator-> () const
const std::string get_key () const
size_t get_index () const
const vconfig get_child () const
bool operator== (all_children_iterator i) const
bool operator!= (all_children_iterator i) const

Private Attributes

Itor i_
unsigned inner_index_
unsigned index_offset_


Detailed Description

Definition at line 60 of file variable.hpp.


Member Typedef Documentation

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

Definition at line 61 of file variable.hpp.

typedef std::forward_iterator_tag vconfig::all_children_iterator::iterator_category

Definition at line 62 of file variable.hpp.

Definition at line 63 of file variable.hpp.

Definition at line 64 of file variable.hpp.

Definition at line 65 of file variable.hpp.

Definition at line 66 of file variable.hpp.


Constructor & Destructor Documentation

vconfig::all_children_iterator::all_children_iterator ( Itor  i = Itor()  )  [explicit]

Definition at line 331 of file variable.cpp.


Member Function Documentation

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

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

Definition at line 353 of file variable.cpp.

References operator++().

std::pair< const std::string, const vconfig > vconfig::all_children_iterator::operator* (  )  const

Definition at line 360 of file variable.cpp.

References get_child(), and get_key().

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

Definition at line 365 of file variable.cpp.

References get_child(), and get_key().

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

size_t vconfig::all_children_iterator::get_index (  )  const

Definition at line 396 of file variable.cpp.

References config::all_children_iterator::get_index(), i_, and index_offset_.

const vconfig vconfig::all_children_iterator::get_child (  )  const

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

Definition at line 401 of file variable.cpp.

References i_, and inner_index_.

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

Definition at line 406 of file variable.cpp.

References i_, and inner_index_.


Member Data Documentation

Definition at line 83 of file variable.hpp.

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

Definition at line 84 of file variable.hpp.

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

Definition at line 85 of file variable.hpp.

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


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs