id: brl.map title: BRL.Map
| Type | Description |
|---|---|
| TIntMap | A key/value (Int/Object) map. |
| TIntKey | Int holder for key returned by TIntMap.Keys() enumerator. |
| TPtrMap | A key/value (Byte Ptr/Object) map. |
| TPtrKey | Byte Ptr holder for key returned by TPtrMap.Keys() enumerator. |
| TStringMap | A key/value (String/Object) map. |
| TMap | An key/value (Object/Object) map backed by a Red/Black tree. |
Function CreateMap:TMap()Creates a map
A new map object
Function ClearMap( map:TMap )Clears a map
ClearMap removes all keys and values from map
Function MapIsEmpty( map:TMap )Checks if a map is empty
True if map is empty, otherwise false
Function MapInsert( map:TMap,key:Object,value:Object )Inserts a key/value pair into a map
If map already contained key, it's value is overwritten with value.
Function MapValueForKey:Object( map:TMap,key:Object )Finds a value given a key
If map does not contain key, a Null object is returned.
The value associated with key
Function MapContains( map:TMap,key:Object )Checks if a map contains a key
True if map contains key
Function MapRemove( map:TMap,key:Object )Removes a key/value pair from a map
Function MapKeys:TMapEnumerator( map:TMap )Gets map keys
The object returned by MapKeys can be used with EachIn to iterate through the keys in map.
An iterator object
Function MapValues:TMapEnumerator( map:TMap )Gets map values
The object returned by MapValues can be used with EachIn to iterate through the values in map.
An iterator object
Function CopyMap:TMap( map:TMap )Copies a map
A copy of map