SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
 All Classes Namespaces Files Functions Variables Typedefs Friends
Public Types | Public Member Functions | Public Attributes | Friends
sdsl::structure_tree_node Class Reference

Class for a node of the structure tree. More...

#include <structure_tree.hpp>

List of all members.

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_nodeoperator= (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

Detailed Description

Class for a node of the structure tree.


Constructor & Destructor Documentation

User defined operator.

Adds the node as a child of node v.

Parameters:
vThe 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

Parameters:
vThe parent node of the created node.
nameThe name of the object.
class_nameThe class type of the object.

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