src/core/Tree.h
Tree [Class]
Description
The Tree template class represents a generic tree structure used to model XML document
hierarchies.
Public Methods
Tree()
Default constructor creates an empty tree.
Tree(Node<T>* root)
Constructs a tree with the given root node.
Node<T>* getRoot() const
Returns a pointer to the root node.
void print_preorder()
Prints the tree in preorder traversal.
void print_prettified()
Prints the tree in a prettified, indented format.
std::string getPrettifyingString()
Returns the prettified string representation of the tree.