#include <Tree.hpp>
Inheritance diagram for Ionflux::Tools::Tree:
Public Member Functions | |
Tree () | |
Constructor. | |
Tree (Node *initRoot, bool initManage) | |
Constructor. | |
virtual | ~Tree () |
Destructor. | |
virtual Node * | findNode (int nodeID) |
Find node. | |
virtual Node * | findNode (const std::string &nodeName) |
Find node. | |
virtual DataEntry | resolve (const std::string &treePathExpr, bool createPath, bool nodesOnly=false) |
Resolve fully qualified tree path. | |
virtual void | setRoot (Node *newRoot, bool newManage) |
Set root node. | |
virtual void | writeToFile (const std::string &fileName) |
Write tree to file. | |
virtual void | readFromFile (const std::string &fileName) |
Read tree from file. | |
virtual bool | eval (const std::string &treeExpr, Node &result, bool createPath) |
Evaluate tree expression. | |
virtual Node & | operator[] (int searchID) |
Find child node. | |
virtual Node & | operator[] (const std::string &searchName) |
Find child node. | |
virtual void | printDebugInfo () |
Print debug information. | |
virtual Node * | getRoot () |
Get root node. | |
virtual int | getNumNodes () |
Get number of nodes. | |
virtual void | clear () |
Clear the tree. | |
virtual Reporter & | getLog () |
Get Console output/logging facility. | |
Protected Attributes | |
Ionflux::Tools::Reporter | log |
Console output/logging. | |
NodeInfo | root |
Root node. |
Tree type data structure. This behaves almost like a Node, but maintains a special node (the root node) as well as providing some convenience functions for I/O.
|
Constructor. Construct new Tree object. |
|
Constructor. Construct new Tree object.
|
|
Destructor. Destruct Tree object. |
|
Clear the tree.
Reimplemented in Ionflux::Tools::ConfigTree. |
|
Evaluate tree expression.
Evaluates a tree expression using nodes from the tree as variables. Pass
|
|
Find node. Searches the tree for a node with the specified name.
|
|
Find node. Searches the tree for a node with the specified ID.
|
|
Get Console output/logging facility.
Reimplemented in Ionflux::Tools::Template. |
|
Get number of nodes.
|
|
Get root node.
|
|
Find child node. Return a child of the root node by name. Returns the first child node with the specified name.
|
|
Find child node. Return a child of the root node by numerical ID. Returns the first child node with the specified ID.
|
|
Print debug information.
|
|
Read tree from file. Reads the tree from a file.
|
|
Resolve fully qualified tree path.
Resolve a fully qualified tree path. Pass
|
|
Set root node. Sets the root node of this tree to specified node.
|
|
Write tree to file. Writes the tree to a file.
|
|
Console output/logging.
Reimplemented in Ionflux::Tools::Template. |
|
Root node.
|