#include <node.h>
Inheritance diagram for NormalNode:
Public Types | |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef Node< _TContent > & | reference |
typedef const Node< _TContent > & | const_reference |
typedef _TContent | value_type |
typedef Node< _TContent > * | pointer |
typedef const Node< _TContent > * | const_pointer |
Public Methods | |
virtual | ~NormalNode () |
virtual NormalNode< _TContent > * | construct () const |
virtual default constructor | |
virtual NormalNode< _TContent > * | cloneTree () const |
Simulated Copy Constructor All children are duplicated, pointers to root and parent are preserved. | |
virtual NormalNode< _TContent > * | cloneNode () const |
Simulated Copy Constructor for the Node, pointer to root, parent and children are preserved, but the children are not duplicated. | |
virtual void | acceptVisitor (NodeVisitorBase< Node< _TContent >, NormalNode< _TContent >, RootNode< _TContent > > *visitor) |
Accept a visitor. | |
virtual void | acceptVisitor (NodeVisitorBase< const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > > *visitor) const |
Accept a const visitor. | |
Protected Types | |
typedef std::map< const Node< _TContent > *, Node< _TContent > * > | OldNewMap |
Protected Methods | |
virtual Node< _TContent > * | copy (OldNewMap &nodeMap) const |
Copy Node and its children recursively (is used by cloneTree). |
Definition at line 255 of file node.h.
|
Reimplemented from Node. |
|
Reimplemented from Node. |
|
Reimplemented from Node. |
|
Reimplemented from Node. Definition at line 290 of file node.h. Referenced by NormalNode::cloneTree(). |
|
Reimplemented from Node. |
|
Reimplemented from Node. |
|
Reimplemented from Node. |
|
Reimplemented from Node. |
|
|
|
Accept a const visitor. Calls the visitors visitNormalNode method with this node.
Implements Node. |
|
Accept a visitor. Calls the visitors visitNormalNode method with this node.
Implements Node. |
|
Simulated Copy Constructor for the Node, pointer to root, parent and children are preserved, but the children are not duplicated.
Implements Node. |
|
Simulated Copy Constructor All children are duplicated, pointers to root and parent are preserved.
Implements Node. Definition at line 769 of file node.h. References Node::linkSiblings(), Node::m_children, and NormalNode::OldNewMap. |
|
virtual default constructor
Implements Node. |
|
Copy Node and its children recursively (is used by cloneTree).
Implements Node. Definition at line 806 of file node.h. References Node::linkSiblings(), Node::m_children, Node::m_parent, and Node::m_root. |