frepple::utils::Tree::TreeNode Class Reference

This class represents a node in the tree. More...

#include <utils.h>

Inheritance diagram for frepple::utils::Tree::TreeNode:
frepple::utils::HasName< T > frepple::utils::HasName< Buffer > frepple::utils::HasName< Calendar > frepple::utils::HasName< Customer > frepple::utils::HasName< Demand > frepple::utils::HasName< Item > frepple::utils::HasName< Location > frepple::utils::HasName< Operation > frepple::utils::HasName< Resource > frepple::utils::HasName< Solver >

List of all members.

Public Member Functions

TreeNodedecrement () const
const string & getName () const
TreeNodeincrement () const
bool operator< (const TreeNode &o)
 TreeNode (const string &n)
virtual ~TreeNode ()

Friends

class Tree

Detailed Description

This class represents a node in the tree.

Elements which we want to represent in the tree will need to inherit from this class, since this tree container is intrusive.

Definition at line 2718 of file utils.h.


Constructor & Destructor Documentation

virtual frepple::utils::Tree::TreeNode::~TreeNode (  )  [inline, virtual]

Destructor.

Definition at line 2724 of file utils.h.

frepple::utils::Tree::TreeNode::TreeNode ( const string &  n  )  [inline]

Constructor.

Definition at line 2734 of file utils.h.


Member Function Documentation

TreeNode* frepple::utils::Tree::TreeNode::decrement (  )  const [inline]

Return a pointer to the node preceding this one.

Definition at line 2763 of file utils.h.

const string& frepple::utils::Tree::TreeNode::getName (  )  const [inline]

Returns the name of this node. This name is used to sort the nodes.

Definition at line 2728 of file utils.h.

TreeNode* frepple::utils::Tree::TreeNode::increment (  )  const [inline]

Return a pointer to the node following this one.

Definition at line 2741 of file utils.h.

bool frepple::utils::Tree::TreeNode::operator< ( const TreeNode o  )  [inline]

Comparison operator.

Definition at line 2731 of file utils.h.


Friends And Related Function Documentation

friend class Tree [friend]

Definition at line 2720 of file utils.h.


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

Generated on 25 Sep 2009 for frePPLe by  doxygen 1.6.1