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:

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


Constructor & Destructor Documentation

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

Destructor.

Definition at line 3542 of file utils.h.

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

Constructor.

Definition at line 3552 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 3581 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 3546 of file utils.h.

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

Return a pointer to the node following this one.

Definition at line 3559 of file utils.h.

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

Comparison operator.

Definition at line 3549 of file utils.h.


Friends And Related Function Documentation

friend class Tree [friend]

Definition at line 3538 of file utils.h.


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

Documentation generated for frePPLe by  doxygen