|
SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
Class for a node of the structure tree. More...
#include <structure_tree.hpp>
Public Types | |
| typedef map< string, string > | tKeyValue |
Public Member Functions | |
| structure_tree_node () | |
| Standard constructor. | |
| structure_tree_node (structure_tree_node *v) | |
| User defined operator. | |
| structure_tree_node (structure_tree_node *v, const string &name, const string &class_name) | |
| User defined operator. | |
| structure_tree_node (const structure_tree_node &v) | |
| Copy constructor. | |
| ~structure_tree_node () | |
| Destructor. | |
| structure_tree_node & | operator= (const structure_tree_node &v) |
| void | swap (structure_tree_node &v) |
| Swap operator. | |
| void | add_key_value (const string &key, const string &value) |
| Add a key value pair. | |
| template<class IntType > | |
| void | add_size (IntType value) |
Public Attributes | |
| structure_tree_node *& | parent |
| vector< structure_tree_node * > & | children |
| map< string, string > & | key_values |
Friends | |
| class | structure_tree |
Class for a node of the structure tree.
| sdsl::structure_tree_node::structure_tree_node | ( | structure_tree_node * | v | ) | [explicit] |
User defined operator.
Adds the node as a child of node v.
| v | The parent node of the created node. |
| sdsl::structure_tree_node::structure_tree_node | ( | structure_tree_node * | v, |
| const string & | name, | ||
| const string & | class_name | ||
| ) |
User defined operator.
Adds the node as a child of node v and sets two key values pairs
| v | The parent node of the created node. |
| name | The name of the object. |
| class_name | The class type of the object. |
1.8.0