Class xlifepp::Node#

template<class T>
class Node#

Collaboration diagram for xlifepp::Node:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::Node< T >" tooltip="xlifepp::Node< T >"] "1" [label="xlifepp::Node< T >" tooltip="xlifepp::Node< T >" fillcolor="#BFBFBF"] "2" -> "2" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="usage"] }

node of a tree

Public Functions

inline Node()#

default constructor

inline Node(T *O, Node *p, number_t l)#

basic constructor

~Node()#

destructor

inline bool endNode() const#

true if a end node (no child)

inline T *objectp() const#

return object pointer linked to node

void print(std::ostream&, const string_t& = "") const#

print utility

Public Members

Node *child_#

pointer to first child node

number_t level_#

level in a tree

T *obj_#

object pointer linked to node

Node *parent_#

pointer to parent node (0 if root node)

Node *right_#

pointer to right node

Friends

template<class S>
friend std::ostream &operator<<(std::ostream &os, const Node<S> &node)#

print operator