fastjet 2.4.5
Public Member Functions | Public Attributes
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.

{}; 

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.

                                  {
    parent = NULL; 
    left   = NULL; 
    right  = NULL;
  };
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.

Definition at line 164 of file SearchTree.hh.

References fastjet::SearchTree< T >::Node::left.

                                                                                                  {
  if (parent == NULL) {return;}
  if (parent->right == this) {parent->right = XX;}
  else {parent->left = XX;}
}
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 >::verify_structure_linear().

                              {
    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

Definition at line 159 of file SearchTree.hh.

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

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines