The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
schema_validation::wml_tag::iterator< T, Map > Class Template Reference
Inheritance diagram for schema_validation::wml_tag::iterator< T, Map >:
Inheritance graph

Public Member Functions

 iterator (const wml_tag &base_tag, const config &match)
 
 iterator ()
 

Private Member Functions

void init (const wml_tag &base_tag)
 
void ensure_valid_or_end ()
 
void increment ()
 
void push_new_tag_conditions (const wml_tag &tag)
 
bool equal (const iterator< T, Map > &other) const
 
iterator< T, Map >::reference dereference () const
 

Private Attributes

std::queue< const wml_tag * > condition_queue
 
Map::const_iterator current
 
const configmatch
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename T, typename Map = std::map<std::string, T>>
class schema_validation::wml_tag::iterator< T, Map >

Definition at line 57 of file tag.hpp.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename T, typename Map = std::map<std::string, T>>
schema_validation::wml_tag::iterator< T, Map >::iterator ( const wml_tag base_tag,
const config match 
)
inline

◆ iterator() [2/2]

template<typename T, typename Map = std::map<std::string, T>>
schema_validation::wml_tag::iterator< T, Map >::iterator ( )
inline

Definition at line 72 of file tag.hpp.

Member Function Documentation

◆ dereference()

template<typename T, typename Map = std::map<std::string, T>>
iterator<T,Map>::reference schema_validation::wml_tag::iterator< T, Map >::dereference ( ) const
inlineprivate

Definition at line 102 of file tag.hpp.

References schema_validation::wml_tag::iterator< T, Map >::current.

◆ ensure_valid_or_end()

void schema_validation::wml_tag::key_iterator::ensure_valid_or_end ( )
private

◆ equal()

template<typename T, typename Map = std::map<std::string, T>>
bool schema_validation::wml_tag::iterator< T, Map >::equal ( const iterator< T, Map > &  other) const
inlineprivate

◆ increment()

template<typename T, typename Map = std::map<std::string, T>>
void schema_validation::wml_tag::iterator< T, Map >::increment ( )
inlineprivate

◆ init()

void schema_validation::wml_tag::key_iterator::init ( const wml_tag base_tag)
private

◆ push_new_tag_conditions()

template<typename T, typename Map = std::map<std::string, T>>
void schema_validation::wml_tag::iterator< T, Map >::push_new_tag_conditions ( const wml_tag tag)
inlineprivate

Friends And Related Function Documentation

◆ boost::iterator_core_access

template<typename T, typename Map = std::map<std::string, T>>
friend class boost::iterator_core_access
friend

Definition at line 74 of file tag.hpp.

Member Data Documentation

◆ condition_queue

template<typename T, typename Map = std::map<std::string, T>>
std::queue<const wml_tag*> schema_validation::wml_tag::iterator< T, Map >::condition_queue
private

Definition at line 59 of file tag.hpp.

Referenced by schema_validation::wml_tag::iterator< T, Map >::equal().

◆ current

template<typename T, typename Map = std::map<std::string, T>>
Map::const_iterator schema_validation::wml_tag::iterator< T, Map >::current
private

◆ match

template<typename T, typename Map = std::map<std::string, T>>
const config& schema_validation::wml_tag::iterator< T, Map >::match
private

Definition at line 61 of file tag.hpp.

Referenced by schema_validation::wml_tag::operator==().


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