DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
map< Class TKey, Class TValue > Class Reference

Associative array template
usage: More...

Private Member Functions

proto native int Count ()
 
proto native void Clear ()
 
proto TValue Get (TKey key)
 
proto bool Find (TKey key, out TValue val)
 
proto TValue GetElement (int index)
 
proto TKey GetKey (int i)
 
proto void Set (TKey key, TValue value)
 
proto void Remove (TKey key)
 
proto void RemoveElement (int i)
 
proto bool Contains (TKey key)
 
proto bool Insert (TKey key, TValue value)
 
proto int Copy (map< TKey, TValue > from)
 
array< TKey > GetKeyArray ()
 
array< TValue > GetValueArray ()
 
bool ReplaceKey (TKey old_key, TKey new_key)
 
TKey GetKeyByValue (TValue value)
 
bool GetKeyByValueChecked (TValue value, out TKey key)
 
proto native MapIterator Begin ()
 
proto native MapIterator End ()
 
proto native MapIterator Next (MapIterator it)
 
proto TKey GetIteratorKey (MapIterator it)
 
proto TValue GetIteratorElement (MapIterator it)
 

Detailed Description

Associative array template
usage:

autoptr map<string, int> prg_count = new map<string, int>;
// fill
project_locations.Insert("dayz", 10);
project_locations.Insert("arma", 20);
project_locations.Insert("tkom", 1);
Print(project_locations.Get("arma")); // prints '20'
map
Definition ControlsXboxNew.c:4
proto void Print(void var)
Prints content of variable to console/log.

The documentation for this class was generated from the following file: