class multiMap<Class K, Class V>Source
Part of Tools
Associative array template, with multiple values per key
usage:
ref multiMap<string, int> myMap = new multiMap<string, int>;
myMap.Insert("jozo", 7);
myMap.Insert("jozo", 3);
myMap.Insert("jozo", 5);
myMap.Insert("fero", 98);
myMap.Insert("fero", 35);
myMap.Insert("fero", 17);
Print("Jozo:");
myMap.Get("jozo").Debug();
Print("Fero:");
myMap.Get("fero").Debug();
Constructors 1
void ~multiMap()References Clear()
Members 2
private ref array<K> m_keysReferenced by Clear(), Count(), Get()
Show 5 more
, GetKeyByIndex(), HasKey(), Insert(), Remove(), and RemoveByIndex()Methods 9
bool HasKey(K key)array<V> Get(K key)Referenced by PluginPlayerStatus.DisplayTendency()
K GetKeyByIndex(int index)void Insert(K key, V value)References array.Find(), array.Get(), array.Insert()
Show 5 more
, array.Insert(), Insert(), array.Insert(), m_keys, and m_valuesvoid Remove(K key)Referenced by PluginPlayerStatus.SetNotifier()
int Count()void Clear()Referenced by ~multiMap()