The Battle for Wesnoth  1.15.2+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 29 of file persist_context.hpp.

Constructor & Destructor Documentation

◆ name_space() [1/2]

persist_context::name_space::name_space ( )
inline

Definition at line 72 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 82 of file persist_context.hpp.

References parse().

Member Function Documentation

◆ next()

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

Definition at line 65 of file persist_context.hpp.

References name_space().

Referenced by persist_context::get_node().

◆ operator bool()

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

Definition at line 71 of file persist_context.hpp.

References valid_.

◆ parse()

void persist_context::name_space::parse ( )
inline

Definition at line 40 of file persist_context.hpp.

References body().

Referenced by name_space().

◆ prev()

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

Definition at line 68 of file persist_context.hpp.

References name_space().

Referenced by persist_file_context::clear_var().

◆ valid()

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

Definition at line 37 of file persist_context.hpp.

References valid_.

Member Data Documentation

◆ descendants_

std::string persist_context::name_space::descendants_

Definition at line 34 of file persist_context.hpp.

Referenced by persist_manager::get_context().

◆ lineage_

std::string persist_context::name_space::lineage_

Definition at line 33 of file persist_context.hpp.

Referenced by persist_file_context::clear_var().

◆ namespace_

std::string persist_context::name_space::namespace_

Definition at line 30 of file persist_context.hpp.

Referenced by persist_context::get_node().

◆ node_

std::string persist_context::name_space::node_

Definition at line 32 of file persist_context.hpp.

Referenced by persist_file_context::clear_var().

◆ root_

std::string persist_context::name_space::root_

◆ valid_

bool persist_context::name_space::valid_

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