NodeItem Class Reference

#include <NodeList.h>

List of all members.

Public Member Functions

 NodeItem ()
 NodeItem (const NodeItem &)
 ~NodeItem ()
NodeItemoperator= (const NodeItem &)
 assignment operator
void setName (string n)
void setNode (const Node &)
void setNode (const InputNode &)
void setNode (const OutputNode &)
void setNode (const BooleanNode &)
void setNode (const DelayNode &)
void setNode (const SustainNode &)
bool removeNode ()
string getName () const
 return name of the contained node
NodegetNode ()
bool hasNode () const

Protected Attributes

string name

Private Attributes

Nodenode

Detailed Description

DESCRIPTION

The node item functions as a wrapper to a node


Constructor & Destructor Documentation

NodeItem::NodeItem (  ) 

Default Constructor

NodeItem::NodeItem ( const NodeItem other  ) 

copy constructor

NodeItem::~NodeItem (  ) 

Destructor


Member Function Documentation

string NodeItem::getName ( void   )  const [inline]

return name of the contained node

Node & NodeItem::getNode (  ) 

get the non-NULL node from the NodeItem

bool NodeItem::hasNode (  )  const

check if a node has been allocated to this NodeItem

NodeItem & NodeItem::operator= ( const NodeItem other  ) 

assignment operator

assign one NodeItem to another

bool NodeItem::removeNode (  ) 

remove a node by reclaiming its memory

void NodeItem::setName ( string  s  ) 

change the name used to refer to this NodeItem

void NodeItem::setNode ( const SustainNode other  ) 

set the node to a valid SustainNode

void NodeItem::setNode ( const DelayNode other  ) 

set the node to a valid DelayNode

void NodeItem::setNode ( const BooleanNode other  ) 

set the node to a valid BooleanNode

void NodeItem::setNode ( const OutputNode other  ) 

set the node to a valid OutputNode

void NodeItem::setNode ( const InputNode other  ) 

set the node to a valid InputNode

void NodeItem::setNode ( const Node other  ) 

set the node on this item to a valid InputNode, OutputNode, BooleanNode, DelayNode, or SustainNode


Member Data Documentation

string NodeItem::name [protected]
Node* NodeItem::node [private]

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

Generated on Fri May 7 00:40:42 2010 for ChemChains by  doxygen 1.6.1