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:

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

Constructor & Destructor Documentation

virtual frepple::utils::Tree::TreeNode::~TreeNode ( )
inlinevirtual

Destructor.

Definition at line 3661 of file utils.h.

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

Constructor.

Definition at line 3671 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 3700 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 3665 of file utils.h.

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

Return a pointer to the node following this one.

Definition at line 3678 of file utils.h.

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

Comparison operator.

Definition at line 3668 of file utils.h.

Friends And Related Function Documentation

friend class Tree
friend

Definition at line 3657 of file utils.h.


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