Arbor 3: FSM & BT Graph Editor  3.2.0
NodeList< T > Class Template Reference

Node list More...

Inheritance diagram for NodeList< T >:

Public Member Functions

int IndexOf (T node)
 Get Node index. More...
 
GetFromID (int nodeID)
 Gets Node from the node identifier. More...
 
void Add (T node)
 Add a node. More...
 
bool Remove (T node)
 Remove a node. More...
 

Properties

int count [get]
 Get a count of Node. More...
 
this[int index] [get]
 Get Node from index. More...
 

Detailed Description

Node list

Template Parameters
TNode type
Type Constraints
T :Node 

Member Function Documentation

void Add ( node)

Add a node.

Parameters
nodeThe node to be added.
T GetFromID ( int  nodeID)

Gets Node from the node identifier.

Parameters
nodeIDThe node identifier.
Returns
Found Node. Returns null if not found.
int IndexOf ( node)

Get Node index.

Parameters
nodeNode
Returns
Index. If not, it returns -1.
bool Remove ( node)

Remove a node.

Parameters
nodeThe node to be removed.
Returns
Returns true if removed.

Property Documentation

int count
get

Get a count of Node.

T this[int index]
get

Get Node from index.

Parameters
indexIndex