#include <NodeList.h>
Public Member Functions | |
NodeItem () | |
NodeItem (const NodeItem &) | |
~NodeItem () | |
NodeItem & | operator= (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 | |
Node & | getNode () |
bool | hasNode () const |
Protected Attributes | |
string | name |
Private Attributes | |
Node * | node |
The node item functions as a wrapper to a node
NodeItem::NodeItem | ( | ) |
Default Constructor
NodeItem::NodeItem | ( | const NodeItem & | other | ) |
copy constructor
NodeItem::~NodeItem | ( | ) |
Destructor
string NodeItem::getName | ( | void | ) | const [inline] |
return name of the contained node
bool NodeItem::hasNode | ( | ) | const |
check if a node has been allocated to this NodeItem
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 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 Node & | other | ) |
set the node on this item to a valid InputNode, OutputNode, BooleanNode, DelayNode, or SustainNode
string NodeItem::name [protected] |
Node* NodeItem::node [private] |