The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
persist_context::name_space Struct Reference

#include <persist_context.hpp>

Public Member Functions

bool valid () const
 
void parse ()
 
name_space next () const
 
name_space prev () const
 
 operator bool () const
 
 name_space ()
 
 name_space (const std::string &ns, bool doParse=false)
 

Public Attributes

std::string namespace_
 
std::string root_
 
std::string node_
 
std::string lineage_
 
std::string descendants_
 
bool valid_
 

Detailed Description

Definition at line 30 of file persist_context.hpp.

Constructor & Destructor Documentation

◆ name_space() [1/2]

persist_context::name_space::name_space ( )
inline

Definition at line 73 of file persist_context.hpp.

Referenced by next(), and prev().

◆ name_space() [2/2]

persist_context::name_space::name_space ( const std::string &  ns,
bool  doParse = false 
)
inline

Definition at line 83 of file persist_context.hpp.

References descendants_, lineage_, namespace_, node_, parse(), root_, and valid_.

Member Function Documentation

◆ next()

name_space persist_context::name_space::next ( ) const
inline

Definition at line 66 of file persist_context.hpp.

References descendants_, and name_space().

Referenced by persist_context::get_node().

◆ operator bool()

persist_context::name_space::operator bool ( ) const
inline

Definition at line 72 of file persist_context.hpp.

References valid_.

◆ parse()

void persist_context::name_space::parse ( )
inline

Definition at line 41 of file persist_context.hpp.

References namespace_.

Referenced by name_space().

◆ prev()

name_space persist_context::name_space::prev ( ) const
inline

Definition at line 69 of file persist_context.hpp.

References lineage_, and name_space().

Referenced by persist_file_context::clear_var().

◆ valid()

bool persist_context::name_space::valid ( ) const
inline

Definition at line 38 of file persist_context.hpp.

References valid_.

Member Data Documentation

◆ descendants_

std::string persist_context::name_space::descendants_

Definition at line 35 of file persist_context.hpp.

Referenced by persist_manager::get_context(), name_space(), and next().

◆ lineage_

std::string persist_context::name_space::lineage_

Definition at line 34 of file persist_context.hpp.

Referenced by persist_file_context::clear_var(), name_space(), and prev().

◆ namespace_

std::string persist_context::name_space::namespace_

Definition at line 31 of file persist_context.hpp.

Referenced by persist_context::get_node(), name_space(), and parse().

◆ node_

std::string persist_context::name_space::node_

Definition at line 33 of file persist_context.hpp.

Referenced by persist_file_context::clear_var(), and name_space().

◆ root_

std::string persist_context::name_space::root_

◆ valid_

bool persist_context::name_space::valid_

Definition at line 36 of file persist_context.hpp.

Referenced by name_space(), operator bool(), and valid().


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