![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
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
Murl.IndexBase.SInt16ArraySInt16StdHashSInt16
The default constructor. Create an empty index object.
Murl.Index.SInt16 new()
Construct an index containing a single item.
Murl.Index.SInt16 new(Integer item)
item | The item. |
Construct an index containing two items.
Murl.Index.SInt16 new(Integer item1, Integer item2)
item1 | The first item. |
item2 | The second item. |
Construct an index containing three items.
Murl.Index.SInt16 new(Integer item1, Integer item2, Integer item3)
item1 | The first item. |
item2 | The second item. |
item3 | The third item. |
Constructor taking an array.
Murl.Index.SInt16 new(Murl.Array.SInt16 array)
array | The array object to copy. |
The copy constructor.
Murl.Index.SInt16 new(Murl.Index.SInt16 index)
index | The index object to copy. |
Remove the last item.
Integer Pop()