class Node

The Base Node class. More...

Contains pure virtuals
Definition#include <data-flow/include/Node.h>
InheritsObject
Inherited byBufferedNode, Collector, Constant, InputTranslator, IntfNode, Iterator, Network, Pack, ThreadedIterator, UnPack
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Members


Detailed Description

The Base Node class. All nodes to be inserted in a network must derive from this class. It contains the proper initializations for the connectivity of the nodes.

string name

[protected]

Node's name

vector<NodeInput> inputs

[protected]

Node's inputs

vector<string> outputNames

[protected]

Node's outputs

ParameterSet parameters

[protected]

Parameters given to the node at construction time

UINode * uinode

[protected]

Corresponding UINode

void  connectToNode (unsigned int in, Node *inputNode, unsigned int out)

[protected virtual]

Connect an input node using numeric (integer) input/output names

int  addOutput (const string &outputName)

[protected virtual]

Adding an output to a node

int  addInput (const string &inputName)

[protected virtual]

Adding an input to a node

vector<NodeInput>&  getInputs ()

[protected virtual]

Returns the inputs vector

 Node (string nodeName, const ParameterSet &params)

Constructor, takes the name of the node and a set of parameters

Node ()

[virtual]

Destructor

ObjectRef  getOutput (int output_id, int count)

[pure virtual]

Ask for the node's output which ID (number) is output_id and for the 'count' iteration

ObjectRef  getOutputNamed (const string &outputName, int count)

[virtual]

Ask for the node's output (named) and for the count iteration

void  connectToNode (string in, Node *inputNode, string out)

[virtual]

Connect an input node using symbolic (strings) input/output names

void  initialize ()

[virtual]

Initialize a node

bool  hasOutput (int output_id)

[const virtual]

Checks whether node really has a certain output

ObjectRef  getInput (int inputID, int count)

void  stop ()

[virtual]

Asks the node to stop what it is doing to allow processing termination

void  cleanupNotify ()

[virtual]

Notify the node that is will be destroyed shortly

void  reset ()

[virtual]

Resets the node internal values and buffers

string  getName ()

Returns the node name

void  request (int outputID, const ParameterSet &req)

[virtual]

Standard request-passing method between nodes during initialization

void  verifyConnect ()

[virtual]

Verify input connections for the node

void  printOn (ostream &out=cout)

[const]

A node can print itself

Reimplemented from Object.

void  setUINode (UINode *_uinode)

int  addFactory (const string &factoryName, _NodeFactory* const factory)

[static]

Adding a factory into the static dictionary

_NodeFactory*  getFactoryNamed (const string &name)

[static]

The factory lookup function

 Node ()

[protected]

Default constructor, should not be used

int  translateInput (string inputName)

[protected virtual]

symbolic to numeric translation for input names

int  translateOutput (string inputName)

[protected virtual]

symbolic to numeric translation for output names

void  rt_assert (bool cond, string message="", char *_file="unknown", int _line=0)

[protected virtual]

Run-time assertions

void  construct_assert (bool cond, string message="", char *_file="unknown", int _line=0)

[protected virtual]

Construct-time assertions

void  throw_error (bool send_ptr, string message, char *_file, int _line)

[protected virtual]

Error with the node

map<string,_NodeFactory*> & factoryDictionary ()

[static]

The node instance factory

vector<string> & nodeInfo ()

[static]

The node information map

int  addNodeInfo (const string &info)

[static]

Routine to add info for a node