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

#include <config.hpp>

Classes

struct  arrow_helper
 

Public Types

typedef const any_child value_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const arrow_helper pointer
 
typedef const any_child reference
 
typedef std::vector< child_pos >::const_iterator Itor
 
typedef Itor::difference_type difference_type
 
typedef const_all_children_iterator this_type
 

Public Member Functions

 const_all_children_iterator (const Itor &i)
 
 const_all_children_iterator (const all_children_iterator &i)
 
const_all_children_iteratoroperator++ ()
 
const_all_children_iterator operator++ (int)
 
this_typeoperator-- ()
 
this_type operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const const_all_children_iterator &i) const
 
bool operator!= (const const_all_children_iterator &i) const
 
bool operator== (const all_children_iterator &i) const
 
bool operator!= (const all_children_iterator &i) const
 
this_typeoperator+= (difference_type n)
 
this_typeoperator-= (difference_type n)
 
reference operator[] (difference_type n) const
 

Private Attributes

Itor i_
 

Friends

class config
 
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)
 
difference_type operator- (const this_type &a, const this_type &b)
 
this_type operator- (const this_type &a, difference_type n)
 
this_type operator+ (const this_type &a, difference_type n)
 
this_type operator+ (difference_type n, const this_type &a)
 

Detailed Description

Definition at line 743 of file config.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 757 of file config.hpp.

◆ iterator_category

typedef std::random_access_iterator_tag config::const_all_children_iterator::iterator_category

Definition at line 753 of file config.hpp.

◆ Itor

typedef std::vector<child_pos>::const_iterator config::const_all_children_iterator::Itor

Definition at line 756 of file config.hpp.

◆ pointer

Definition at line 754 of file config.hpp.

◆ reference

Definition at line 755 of file config.hpp.

◆ this_type

Definition at line 758 of file config.hpp.

◆ value_type

Definition at line 752 of file config.hpp.

Constructor & Destructor Documentation

◆ const_all_children_iterator() [1/2]

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

Definition at line 759 of file config.hpp.

Referenced by operator++().

◆ const_all_children_iterator() [2/2]

config::const_all_children_iterator::const_all_children_iterator ( const all_children_iterator i)
inline

Definition at line 760 of file config.hpp.

Member Function Documentation

◆ operator!=() [1/2]

bool config::const_all_children_iterator::operator!= ( const all_children_iterator i) const
inline

Definition at line 773 of file config.hpp.

References i, and i_.

◆ operator!=() [2/2]

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

Definition at line 771 of file config.hpp.

References i, and i_.

◆ operator*()

config::const_all_children_iterator::reference config::const_all_children_iterator::operator* ( ) const

Definition at line 862 of file config.cpp.

◆ operator++() [1/2]

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

Definition at line 762 of file config.hpp.

References i_.

◆ operator++() [2/2]

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

Definition at line 763 of file config.hpp.

References const_all_children_iterator(), and i_.

◆ operator+=()

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

Definition at line 780 of file config.hpp.

References i_, and n.

◆ operator--() [1/2]

this_type& config::const_all_children_iterator::operator-- ( )
inline

Definition at line 764 of file config.hpp.

References i_.

◆ operator--() [2/2]

this_type config::const_all_children_iterator::operator-- ( int  )
inline

Definition at line 765 of file config.hpp.

References i_.

◆ operator-=()

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

Definition at line 781 of file config.hpp.

References i_, and n.

◆ operator->()

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

Definition at line 768 of file config.hpp.

◆ operator==() [1/2]

bool config::const_all_children_iterator::operator== ( const all_children_iterator i) const
inline

Definition at line 772 of file config.hpp.

References i, and i_.

◆ operator==() [2/2]

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

Definition at line 770 of file config.hpp.

References i, and i_.

◆ operator[]()

reference config::const_all_children_iterator::operator[] ( difference_type  n) const
inline

Definition at line 783 of file config.hpp.

References i_, and n.

Friends And Related Function Documentation

◆ config

friend class config
friend

Definition at line 792 of file config.hpp.

◆ operator+ [1/2]

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

Definition at line 786 of file config.hpp.

◆ operator+ [2/2]

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

Definition at line 787 of file config.hpp.

◆ operator- [1/2]

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

Definition at line 784 of file config.hpp.

◆ operator- [2/2]

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

Definition at line 785 of file config.hpp.

◆ operator<

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

Definition at line 775 of file config.hpp.

◆ operator<=

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

Definition at line 776 of file config.hpp.

◆ operator>

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

Definition at line 778 of file config.hpp.

◆ operator>=

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

Definition at line 777 of file config.hpp.

Member Data Documentation

◆ i_

Itor config::const_all_children_iterator::i_
private

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