Arbor 3: FSM & BT Graph Editor 3.7.5

Public Member Functions | Properties | List of all members
NodeList< T > Class Template Reference

Node list More...

Inherits ISerializationCallbackReceiver.

## Public Member Functions
int | IndexOf (T node)
| Get Node index. More...
T | 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...
T | this[int index]`[get]`
| Get Node from index. More...

## Detailed Description

Node list

Template Parameters

  T | Node type

Type Constraints

  T | : | Node |

## Member Function Documentation

## ◆ Add()

void Add | ( | T | node | ) |

Add a node.

Parameters

  node | The node to be added.

## ◆ GetFromID()

T GetFromID | ( | int | nodeID | ) |

Gets Node from the node identifier.

Parameters

  nodeID | The node identifier.

Returns
  Found Node. Returns null if not found.

## ◆ IndexOf()

int IndexOf | ( | T | node | ) |

Get Node index.

Parameters

  node | Node

Returns
  Index. If not, it returns -1.

## ◆ Remove()

bool Remove | ( | T | node | ) |

Remove a node.

Parameters

  node | The 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

  index | Index