id: brl.map title: BRL.Map
Type | Description |
---|---|
TIntKey | Int holder for key returned by TIntMap.Keys() enumerator. |
TPtrKey | Byte Ptr holder for key returned by TPtrMap.Keys() enumerator. |
Function CreateMap:TMap()
Create a map
A new map object
Function ClearMap( map:TMap )
Clear a map
ClearMap removes all keys and values from map
Function MapIsEmpty( map:TMap )
Check if a map is empty
True if map is empty, otherwise false
Function MapInsert( map:TMap,key:Object,value:Object )
Insert 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 )
Find 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 )
Check if a map contains a key
True if map contains key
Function MapRemove( map:TMap,key:Object )
Remove a key/value pair from a map
Function MapKeys:TMapEnumerator( map:TMap )
Get 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 )
Get 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 )
Copy a map
A copy of map