Murl Engine Lua Addon API  Version 1.0 beta
Murl.Index.GraphINode

A generic index template class for moveable objects eg. structs or fundamental data types like UInt32, Real, etc.

See IndexBase class for all index methods.
The index class stores a number of (not necessarily unique) keys in a hash table.
The index class works for moveable objects only, use ObjectIndex class for storing non-moveable objects.
This class is based on the NTL Index container, see http://www.ultimatepp.org


Table members

Inherited


Murl.IndexBase.GraphINodeArrayGraphINodeStdHashGraphINode

Functions


Murl.Index.GraphINode.new()

The default constructor. Create an empty index object.

Murl.Index.GraphINode new()

Returns
Murl.Index.GraphINode

Murl.Index.GraphINode.new(array)

Constructor taking an array.

Murl.Index.GraphINode new(Murl.Array.GraphINode array)

Parameters
arrayThe array object to copy.
Returns
Murl.Index.GraphINode

Murl.Index.GraphINode.new(item)

Construct an index containing a single item.

Murl.Index.GraphINode new(Murl.Graph.INode item)

Parameters
itemThe item.
Returns
Murl.Index.GraphINode

Murl.Index.GraphINode.new(item1, item2)

Construct an index containing two items.

Murl.Index.GraphINode new(Murl.Graph.INode item1, Murl.Graph.INode item2)

Parameters
item1The first item.
item2The second item.
Returns
Murl.Index.GraphINode

Murl.Index.GraphINode.new(item1, item2, item3)

Construct an index containing three items.

Murl.Index.GraphINode new(Murl.Graph.INode item1, Murl.Graph.INode item2, Murl.Graph.INode item3)

Parameters
item1The first item.
item2The second item.
item3The third item.
Returns
Murl.Index.GraphINode

Murl.Index.GraphINode.new(index)

The copy constructor.

Murl.Index.GraphINode new(Murl.Index.GraphINode index)

Parameters
indexThe index object to copy.
Returns
Murl.Index.GraphINode


Methods


Pop()

Remove the last item.

Murl.Graph.INode Pop()

Returns
Murl.Graph.INode The the removed item.