DataStructures::Map< key_type, data_type, key_comparison_func > Class Template Reference

#include <DS_Map.h>

List of all members.

Public Member Functions

 Map (const Map &original_copy)
Mapoperator= (const Map &original_copy)
data_type & Get (const key_type &key)
data_type Pop (const key_type &key)
void Set (const key_type &key, const data_type &data)
void SetExisting (const key_type &key, const data_type &data)
void SetNew (const key_type &key, const data_type &data)
bool Has (const key_type &key)
bool Delete (const key_type &key)
data_type & operator[] (const unsigned int position) const
key_type GetKeyAtIndex (const unsigned int position) const
unsigned GetIndexAtKey (const key_type &key)
void RemoveAtIndex (const unsigned index)
void Clear (void)
unsigned Size (void) const

Static Public Member Functions

static void IMPLEMENT_DEFAULT_COMPARISON (void)
static int NodeComparisonFunc (const key_type &a, const MapNode &b)

Protected Member Functions

void SaveLastSearch (const key_type &key, unsigned index)
bool HasSavedSearchResult (const key_type &key) const

Protected Attributes

DataStructures::OrderedList<
key_type, MapNode, Map::NodeComparisonFunc > 
mapNodeList
unsigned lastSearchIndex
key_type lastSearchKey
bool lastSearchIndexValid

Classes

struct  MapNode


Detailed Description

template<class key_type, class data_type, int(*)(const key_type &, const key_type &) key_comparison_func = defaultMapKeyComparison<key_type>>
class DataStructures::Map< key_type, data_type, key_comparison_func >

Note:
IMPORTANT! If you use defaultMapKeyComparison then call IMPLEMENT_DEFAULT_COMPARISON or you will get an unresolved external linker error.


The documentation for this class was generated from the following file:
Generated on Sat Oct 14 08:37:40 2006 for RakNet by  doxygen 1.4.6-NO