DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
multiMap< class K, class V > Class Reference

Associative array template, with multiple values per key
usage: More...

#include <tools.h>

Private Member Functions

bool  HasKey (K key)
 
array< V >  Get (K key)
 
array< V >  GetByIndex (int index)
 
GetKeyByIndex (int index)
 
void  Insert (K key, V value)
 
void  RemoveByIndex (int index)
 
void  Remove (K key)
 
int  Count ()
 
int  Clear ()
 
void  ~multiMap ()
 

Private Attributes

private autoptr array< array< V > >  m_values
 
private autoptr array< K >  m_keys
 

Detailed Description

Associative array template, with multiple values per key
usage:

autoptr 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();

Constructor & Destructor Documentation

void multiMap< class K, class V >::~multiMap ( )
private

Member Function Documentation

bool multiMap< class K, class V >::HasKey ( key )
private
array<V> multiMap< class K, class V >::Get ( key )
private
array<V> multiMap< class K, class V >::GetByIndex ( int  index )
private
K multiMap< class K, class V >::GetKeyByIndex ( int  index )
private
void multiMap< class K, class V >::Insert ( key,
value 
)
private
void multiMap< class K, class V >::RemoveByIndex ( int  index )
private
void multiMap< class K, class V >::Remove ( key )
private
int multiMap< class K, class V >::Count ( )
private
int multiMap< class K, class V >::Clear ( )
private

Member Data Documentation

private autoptr array<array<V> > multiMap< class K, class V >::m_values
private
private autoptr array<K> multiMap< class K, class V >::m_keys
private

The documentation for this class was generated from the following file:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)