The Battle for Wesnoth  1.15.0-dev
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
config::child_iterator Struct Reference

#include <config.hpp>

Public Types

typedef config value_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef int difference_type
 
typedef configpointer
 
typedef configreference
 
typedef child_list::iterator Itor
 
typedef child_iterator this_type
 

Public Member Functions

 child_iterator (const Itor &i)
 
child_iteratoroperator++ ()
 
child_iterator operator++ (int)
 
child_iteratoroperator-- ()
 
child_iterator operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const child_iterator &i) const
 
bool operator!= (const child_iterator &i) const
 
bool operator== (const const_child_iterator &i) const
 
bool operator!= (const const_child_iterator &i) const
 
this_typeoperator+= (Itor::difference_type n)
 
this_typeoperator-= (Itor::difference_type n)
 
configoperator[] (Itor::difference_type n) const
 

Private Attributes

Itor i_
 

Friends

struct const_child_iterator
 
bool operator< (const this_type &a, const this_type &b)
 
bool operator<= (const this_type &a, const this_type &b)
 
bool operator>= (const this_type &a, const this_type &b)
 
bool operator> (const this_type &a, const this_type &b)
 
Itor::difference_type operator- (const this_type &a, const this_type &b)
 
this_type operator- (const this_type &a, Itor::difference_type n)
 
this_type operator+ (const this_type &a, Itor::difference_type n)
 
this_type operator+ (Itor::difference_type n, const this_type &a)
 

Detailed Description

Definition at line 124 of file config.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 128 of file config.hpp.

◆ iterator_category

typedef std::random_access_iterator_tag config::child_iterator::iterator_category

Definition at line 127 of file config.hpp.

◆ Itor

typedef child_list::iterator config::child_iterator::Itor

Definition at line 131 of file config.hpp.

◆ pointer

Definition at line 129 of file config.hpp.

◆ reference

Definition at line 130 of file config.hpp.

◆ this_type

Definition at line 132 of file config.hpp.

◆ value_type

Definition at line 126 of file config.hpp.

Constructor & Destructor Documentation

◆ child_iterator()

config::child_iterator::child_iterator ( const Itor i)
inlineexplicit

Definition at line 133 of file config.hpp.

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

Member Function Documentation

◆ operator!=() [1/2]

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

Definition at line 144 of file config.hpp.

References i_.

◆ operator!=() [2/2]

bool config::child_iterator::operator!= ( const const_child_iterator i) const
inline

Definition at line 146 of file config.hpp.

◆ operator*()

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

◆ operator++() [1/2]

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

Definition at line 135 of file config.hpp.

References i_.

◆ operator++() [2/2]

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

Definition at line 136 of file config.hpp.

References child_iterator(), and i_.

◆ operator+=()

this_type& config::child_iterator::operator+= ( Itor::difference_type  n)
inline

Definition at line 153 of file config.hpp.

References i_, and n.

◆ operator--() [1/2]

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

Definition at line 137 of file config.hpp.

References i_.

◆ operator--() [2/2]

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

Definition at line 138 of file config.hpp.

References child_iterator(), and i_.

◆ operator-=()

this_type& config::child_iterator::operator-= ( Itor::difference_type  n)
inline

Definition at line 154 of file config.hpp.

References i_, and n.

◆ operator->()

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

Definition at line 141 of file config.hpp.

References i_.

◆ operator==() [1/2]

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

Definition at line 143 of file config.hpp.

References i_.

Referenced by config::child_pos::operator!=().

◆ operator==() [2/2]

bool config::child_iterator::operator== ( const const_child_iterator i) const
inline

Definition at line 145 of file config.hpp.

◆ operator[]()

config& config::child_iterator::operator[] ( Itor::difference_type  n) const
inline

Definition at line 156 of file config.hpp.

References i_, and n.

Referenced by config::child(), config::insert(), and config::operator[]().

Friends And Related Function Documentation

◆ const_child_iterator

friend struct const_child_iterator
friend

◆ operator+ [1/2]

this_type operator+ ( const this_type a,
Itor::difference_type  n 
)
friend

Definition at line 159 of file config.hpp.

◆ operator+ [2/2]

this_type operator+ ( Itor::difference_type  n,
const this_type a 
)
friend

Definition at line 160 of file config.hpp.

◆ operator- [1/2]

Itor::difference_type operator- ( const this_type a,
const this_type b 
)
friend

Definition at line 157 of file config.hpp.

◆ operator- [2/2]

this_type operator- ( const this_type a,
Itor::difference_type  n 
)
friend

Definition at line 158 of file config.hpp.

◆ operator<

bool operator< ( const this_type a,
const this_type b 
)
friend

Definition at line 148 of file config.hpp.

◆ operator<=

bool operator<= ( const this_type a,
const this_type b 
)
friend

Definition at line 149 of file config.hpp.

◆ operator>

bool operator> ( const this_type a,
const this_type b 
)
friend

Definition at line 151 of file config.hpp.

◆ operator>=

bool operator>= ( const this_type a,
const this_type b 
)
friend

Definition at line 150 of file config.hpp.

Member Data Documentation

◆ i_

Itor config::child_iterator::i_
private

Definition at line 162 of file config.hpp.

Referenced by operator!=(), config::const_child_iterator::operator!=(), config::attribute_iterator::operator!=(), config::const_attribute_iterator::operator!=(), config::all_children_iterator::operator!=(), config::const_all_children_iterator::operator!=(), operator*(), config::const_child_iterator::operator*(), config::attribute_iterator::operator*(), config::const_attribute_iterator::operator*(), operator++(), config::const_child_iterator::operator++(), config::attribute_iterator::operator++(), config::const_attribute_iterator::operator++(), config::all_children_iterator::operator++(), config::const_all_children_iterator::operator++(), operator+=(), config::const_child_iterator::operator+=(), config::all_children_iterator::operator+=(), config::const_all_children_iterator::operator+=(), operator--(), config::const_child_iterator::operator--(), config::attribute_iterator::operator--(), config::const_attribute_iterator::operator--(), config::all_children_iterator::operator--(), config::const_all_children_iterator::operator--(), operator-=(), config::const_child_iterator::operator-=(), config::all_children_iterator::operator-=(), config::const_all_children_iterator::operator-=(), operator->(), config::const_child_iterator::operator->(), config::attribute_iterator::operator->(), config::const_attribute_iterator::operator->(), operator==(), config::const_child_iterator::operator==(), config::attribute_iterator::operator==(), config::const_attribute_iterator::operator==(), config::all_children_iterator::operator==(), config::const_all_children_iterator::operator==(), operator[](), config::const_child_iterator::operator[](), config::all_children_iterator::operator[](), and config::const_all_children_iterator::operator[]().


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