#include <DS_Map.h>
Public Member Functions | |
Map (const Map &original_copy) | |
Map & | operator= (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 |