fastjet::SearchTree< T >::Node Class Reference

#include <SearchTree.hh>

Collaboration diagram for fastjet::SearchTree< T >::Node:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Node ()
bool treelinks_null () const
 default constructor
void nullify_treelinks ()
 set all the tree-related links are set to null for this node
void reset_parents_link_to_me (Node *XX)
 if my parent exists, determine whether I am it's left or right node and set the relevant link equal to XX.

Public Attributes

value
Nodeleft
Noderight
Nodeparent
Nodesuccessor
Nodepredecessor

Detailed Description

template<class T>
class fastjet::SearchTree< T >::Node

Definition at line 135 of file SearchTree.hh.


Constructor & Destructor Documentation

template<class T >
fastjet::SearchTree< T >::Node::Node (  )  [inline]

Definition at line 137 of file SearchTree.hh.

00137 {}; 


Member Function Documentation

template<class T >
void fastjet::SearchTree< T >::Node::nullify_treelinks (  )  [inline]

set all the tree-related links are set to null for this node

Definition at line 145 of file SearchTree.hh.

Referenced by fastjet::SearchTree< T >::remove().

00145                                   {
00146     parent = NULL; 
00147     left   = NULL; 
00148     right  = NULL;
00149   };

template<class T >
void fastjet::SearchTree< T >::Node::reset_parents_link_to_me ( Node XX  ) 

if my parent exists, determine whether I am it's left or right node and set the relevant link equal to XX.

Referenced by fastjet::SearchTree< T >::remove().

template<class T >
bool fastjet::SearchTree< T >::Node::treelinks_null (  )  const [inline]

default constructor

returns tree if all the tree-related links are set to null for this node

Definition at line 141 of file SearchTree.hh.

Referenced by fastjet::SearchTree< T >::remove(), and fastjet::SearchTree< T >::verify_structure_linear().

00141                               {
00142     return ((parent==0) && (left==0) && (right==0));};


Member Data Documentation

template<class T >
Node* fastjet::SearchTree< T >::Node::left
template<class T >
Node* fastjet::SearchTree< T >::Node::parent
template<class T >
Node* fastjet::SearchTree< T >::Node::predecessor
template<class T >
Node* fastjet::SearchTree< T >::Node::right
template<class T >
Node* fastjet::SearchTree< T >::Node::successor
template<class T >
T fastjet::SearchTree< T >::Node::value

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

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1