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< SetupMatrix > 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 3288 of file utils.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 3294 of file utils.h.

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

Constructor.

Definition at line 3304 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 3333 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 3298 of file utils.h.

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

Return a pointer to the node following this one.

Definition at line 3311 of file utils.h.

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

Comparison operator.

Definition at line 3301 of file utils.h.


Friends And Related Function Documentation

friend class Tree [friend]

Definition at line 3290 of file utils.h.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208