Public Types | Public Member Functions | Public Attributes

persist_context::node Struct Reference

#include <persist_context.hpp>

Collaboration diagram for persist_context::node:
Collaboration graph
[legend]

List of all members.

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 ()
configcfg ()
nodeadd_child (const std::string &name)
bool remove_child (const std::string &name)
nodechild (const name_space &name)
void init ()

Public Attributes

std::string name_
persist_contextroot_
nodeparent_
child_map children_
configcfg_

Detailed Description

Definition at line 103 of file persist_context.hpp.


Member Typedef Documentation

typedef std::map<std::string,node*> persist_context::node::child_map

Definition at line 104 of file persist_context.hpp.


Constructor & Destructor Documentation

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().

Here is the caller graph for this function:

persist_context::node::~node (  )  [inline]

Definition at line 121 of file persist_context.hpp.

References children_.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void persist_context::node::init (  )  [inline]
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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 109 of file persist_context.hpp.

Referenced by add_child(), child(), remove_child(), and ~node().

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().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:13:20 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs