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

#include <config.hpp>

Public Types

typedef const config value_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const configpointer
 
typedef const configreference
 
typedef child_list::const_iterator Itor
 
typedef Itor::difference_type difference_type
 
typedef const_child_iterator this_type
 

Public Member Functions

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

Private Attributes

Itor i_
 

Friends

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 239 of file config.hpp.

Member Typedef Documentation

◆ difference_type

typedef Itor::difference_type config::const_child_iterator::difference_type

Definition at line 246 of file config.hpp.

◆ iterator_category

typedef std::random_access_iterator_tag config::const_child_iterator::iterator_category

Definition at line 242 of file config.hpp.

◆ Itor

typedef child_list::const_iterator config::const_child_iterator::Itor

Definition at line 245 of file config.hpp.

◆ pointer

Definition at line 243 of file config.hpp.

◆ reference

Definition at line 244 of file config.hpp.

◆ this_type

Definition at line 247 of file config.hpp.

◆ value_type

Definition at line 241 of file config.hpp.

Constructor & Destructor Documentation

◆ const_child_iterator() [1/2]

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

Definition at line 248 of file config.hpp.

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

◆ const_child_iterator() [2/2]

config::const_child_iterator::const_child_iterator ( const child_iterator i)
inline

Definition at line 249 of file config.hpp.

Member Function Documentation

◆ operator!=() [1/2]

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

Definition at line 262 of file config.hpp.

References i, and i_.

◆ operator!=() [2/2]

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

Definition at line 260 of file config.hpp.

References i, and i_.

◆ operator*()

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

Definition at line 256 of file config.hpp.

References i_.

◆ operator++() [1/2]

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

Definition at line 251 of file config.hpp.

References i_.

◆ operator++() [2/2]

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

Definition at line 252 of file config.hpp.

References const_child_iterator(), and i_.

◆ operator+=()

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

Definition at line 269 of file config.hpp.

References i_, and n.

◆ operator--() [1/2]

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

Definition at line 253 of file config.hpp.

References i_.

◆ operator--() [2/2]

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

Definition at line 254 of file config.hpp.

References const_child_iterator(), and i_.

◆ operator-=()

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

Definition at line 270 of file config.hpp.

References i_, and n.

◆ operator->()

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

Definition at line 257 of file config.hpp.

References i_.

◆ operator==() [1/2]

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

Definition at line 261 of file config.hpp.

References i, and i_.

◆ operator==() [2/2]

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

Definition at line 259 of file config.hpp.

References i, and i_.

◆ operator[]()

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

Definition at line 272 of file config.hpp.

References i_, and n.

Friends And Related Function Documentation

◆ operator+ [1/2]

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

Definition at line 275 of file config.hpp.

◆ operator+ [2/2]

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

Definition at line 276 of file config.hpp.

◆ operator- [1/2]

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

Definition at line 273 of file config.hpp.

◆ operator- [2/2]

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

Definition at line 274 of file config.hpp.

◆ operator<

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

Definition at line 264 of file config.hpp.

◆ operator<=

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

Definition at line 265 of file config.hpp.

◆ operator>

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

Definition at line 267 of file config.hpp.

◆ operator>=

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

Definition at line 266 of file config.hpp.

Member Data Documentation

◆ i_

Itor config::const_child_iterator::i_
private

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