#include <persist_context.hpp>

Public Types | |
| typedef std::map< std::string, node * > | child_map |
Public Member Functions | |
| node (std::string name, persist_context *root, config &cfg, node *parent=NULL) | |
| ~node () | |
| config & | cfg () |
| node & | add_child (const std::string &name) |
| bool | remove_child (const std::string &name) |
| node & | child (const name_space &name) |
| void | init () |
Public Attributes | |
| std::string | name_ |
| persist_context * | root_ |
| node * | parent_ |
| child_map | children_ |
| config & | cfg_ |
Definition at line 103 of file persist_context.hpp.
| typedef std::map<std::string,node*> persist_context::node::child_map |
Definition at line 104 of file persist_context.hpp.
| persist_context::node::node | ( | std::string | name, | |
| persist_context * | root, | |||
| config & | cfg, | |||
| node * | parent = NULL | |||
| ) | [inline] |
Definition at line 112 of file persist_context.hpp.
Referenced by add_child().

| persist_context::node::~node | ( | ) | [inline] |
Definition at line 121 of file persist_context.hpp.
References children_.
| node& persist_context::node::add_child | ( | const std::string & | name | ) | [inline] |
Definition at line 126 of file persist_context.hpp.
References cfg_, config::child_or_add(), children_, node(), and root_.
Referenced by child().


| config& persist_context::node::cfg | ( | ) | [inline] |
Definition at line 125 of file persist_context.hpp.
References cfg_.
| node& persist_context::node::child | ( | const name_space & | name | ) | [inline] |
Definition at line 145 of file persist_context.hpp.
References add_child(), child(), children_, persist_context::name_space::next(), and persist_context::name_space::root_.
Referenced by child(), init(), persist_file_context::persist_file_context(), and persist_context::set_node().


| void persist_context::node::init | ( | ) | [inline] |
Definition at line 154 of file persist_context.hpp.
References config::add_child(), cfg_, config::child(), child(), init(), config::ordered_begin(), and config::ordered_end().
Referenced by persist_file_context::cancel_transaction(), persist_file_context::clear_var(), init(), persist_file_context::persist_file_context(), and persist_file_context::set_var().


| bool persist_context::node::remove_child | ( | const std::string & | name | ) | [inline] |
Definition at line 130 of file persist_context.hpp.
References cfg_, config::child(), children_, config::clear_children(), config::empty(), and config::remove_attribute().
Referenced by persist_file_context::clear_var().


Definition at line 110 of file persist_context.hpp.
Referenced by add_child(), cfg(), persist_file_context::clear_var(), persist_file_context::get_var(), init(), remove_child(), and persist_file_context::set_var().
Definition at line 109 of file persist_context.hpp.
Referenced by add_child(), child(), remove_child(), and ~node().
| std::string persist_context::node::name_ |
Definition at line 106 of file persist_context.hpp.
Definition at line 108 of file persist_context.hpp.
Referenced by persist_file_context::clear_var().
Definition at line 107 of file persist_context.hpp.
Referenced by add_child().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:13:20 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |