Open PaperOpt
TreeNode Class Reference

#include <utilities.h>

List of all members.

Public Member Functions

 TreeNode ()
 ~TreeNode ()
TreeNodeLeft () const
TreeNodeRight () const
double Value () const
void Left (TreeNode *n)
void Right (TreeNode *n)
void Value (double d)
void operator+= (double d)

Detailed Description

define the tree node for the BSP tree used in the Class DistributionThreeDimension


Constructor & Destructor Documentation

TreeNode::TreeNode ( ) [inline]

default constructor set the tree node equal to zero

TreeNode::~TreeNode ( ) [inline]

destructor


Member Function Documentation

TreeNode* TreeNode::Left ( ) const [inline]
Returns:
the left child of one tree node
void TreeNode::Left ( TreeNode n) [inline]

the left child of one tree node to the given value n

void TreeNode::operator+= ( double  d) [inline]

overload operater "+="

TreeNode* TreeNode::Right ( ) const [inline]
Returns:
the right child of one tree node
void TreeNode::Right ( TreeNode n) [inline]

the rihgt child of one tree node to the given value n

double TreeNode::Value ( ) const [inline]
Returns:
the value of the current tree node
void TreeNode::Value ( double  d) [inline]

the value of the current tree node to the given value d


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