Home

Map

Binary tree of objects values

Operations

New

Default constructor

New()

Empty

Clears the queue

method : public : native : Empty() ~ Nil

Filter

Uses the given function to filter out values

method : public : Filter(f:(Compare)~Bool) ~ Map
Parameters
NameTypeDescription
f(Compare)~Boolfunction to use a filter. If the function evaluates to true the value is added to the collection.

Return
TypeDescription
Mapfilter vector

Find

Searches for a value in a map

method : public : Find(key:Compare) ~ Base
Parameters
NameTypeDescription
keyComparesearch key

Return
TypeDescription
Basefound value, Nil if not found

GetKeys

Get a collection of keys

method : public : GetKeys() ~ CompareVector
Return
TypeDescription
CompareVectorvector of keys

GetValues

Gets a collection of values

method : public : GetValues() ~ Vector
Return
TypeDescription
Vectorvector of values

Has

Checks for a value in a map

method : public : Has(key:Compare) ~ Bool
Parameters
NameTypeDescription
keyComparesearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a value into the map

method : public : native : Insert(key:Compare, value:Base) ~ Nil
Parameters
NameTypeDescription
keyComparekey
valueBasevalue

IsEmpty

Checks to see if the queue is empty

method : public : native : IsEmpty() ~ Bool
Return
TypeDescription
Booltrue if empty, false otherwise

Remove

Removes a value from the map

method : public : Remove(key:Compare) ~ Bool
Parameters
NameTypeDescription
keyComparekey for value to remove

Size

Size of queue

method : public : native : Size() ~ Int
Return
TypeDescription
Intsize of queue