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

Node list More...

Inherits ISerializationCallbackReceiver.

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

◆ Add()

void Add ( node)

Add a node.

Parameters
nodeThe node to be added.

◆ GetFromID()

T GetFromID ( int  nodeID)

Gets Node from the node identifier.

Parameters
nodeIDThe node identifier.
Returns
Found Node. Returns null if not found.

◆ IndexOf()

int IndexOf ( node)

Get Node index.

Parameters
nodeNode
Returns
Index. If not, it returns -1.

◆ Remove()

bool Remove ( node)

Remove a node.

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

Property Documentation

◆ count

int count
get

Get a count of Node.

◆ this[int index]

T this[int index]
get

Get Node from index.

Parameters
indexIndex