Home
FloatMap
Binary tree of float values
Operations
New
Default constructor
New()
Empty
Clears the map
method : public : Empty() ~ Nil
Filter
Uses the given function to filter out values
method : public : Filter(f:(Float)~Bool) ~ FloatMap
Parameters
Name | Type | Description |
---|
f | (Float)~Bool | function to use a filter. If the function evaluates to true the value is added to the collection. |
Return
Find
Searches for a value in a map
method : public : Find(key:Float) ~ Base
Parameters
Name | Type | Description |
---|
key | Float | search key |
Return
Type | Description |
---|
Base | found value, Nil otherwise |
GetKeys
Get a collection of keys
method : public : native : GetKeys() ~ FloatVector
Return
GetMap
Gets the backing Compare map
method : public : GetMap() ~ Map
Return
Type | Description |
---|
Map | backing Compare map |
GetValues
Gets a collection of values
method : public : GetValues() ~ Vector
Return
Type | Description |
---|
Vector | vector of values |
Has
Check of the given pair is in the map
method : public : Has(key:Float) ~ Bool
Parameters
Name | Type | Description |
---|
key | Float | search key |
Return
Type | Description |
---|
Bool | true if found |
Insert
Inserts a value into the map
method : public : Insert(key:Float, value:Base) ~ Nil
Parameters
IsEmpty
Checks to see if the map is empty
method : public : IsEmpty() ~ Bool
Return
Type | Description |
---|
Bool | true if empty, false otherwise |
Remove
Removes a value from the map
method : public : Remove(key:Float) ~ Bool
Parameters
Name | Type | Description |
---|
key | Float | key for value to remove |
Return
Type | Description |
---|
Bool | true if removed, false otherwise |
Size
Size of queue
method : public : Size() ~ Int
Return
Type | Description |
---|
Int | size of map |