![]() |
MAK Data Logger API Documentation for DIS
|
DtMultiKeyMap allows storage of a value with two unique keys of different types. More...
Inheritance diagram for MAKLogger::DtMultiKeyMap< Key1, Key2, Value >:
Collaboration diagram for MAKLogger::DtMultiKeyMap< Key1, Key2, Value >:Public Types | |
| typedef std::pair< Key1, Key2 > | KeyPair |
| The type definition for the map. More... | |
| typedef std::map< KeyPair, Value > | KeyPairValueMap |
| The type definition for the map. More... | |
| typedef KeyPairValueMap::iterator | iterator |
| The type definition for the map. More... | |
| typedef KeyPairValueMap::const_iterator | const_iterator |
| The type definition for the map. More... | |
Public Member Functions | |
| DtMultiKeyMap () | |
| Ctr constructs an empty map. More... | |
| virtual | ~DtMultiKeyMap () |
| Dtr. More... | |
| DtMultiKeyMap (const DtMultiKeyMap< Key1, Key2, Value > &) | |
| Copy constructor. More... | |
| DtMultiKeyMap< Key1, Key2, Value > & | operator= (const DtMultiKeyMap< Key1, Key2, Value > &) |
| Assignement operator. More... | |
| iterator | insert (Key1 key1, Key2 key2, Value value) |
| Insert a value with it's two unique keys. More... | |
| Value & | operator[] (const Key1 &key1) |
| Access value via Key1;. More... | |
| Value & | operator[] (const Key2 &key2) |
| Access value via Key2;. More... | |
| iterator | find (const Key1 &key1) |
| Search for the position by Key1. More... | |
| const_iterator | find (const Key1 &key1) const |
| Search for the position by Key1. More... | |
| iterator | find (const Key2 &key2) |
| Search for the position by Key2. More... | |
| const_iterator | find (const Key2 &key2) const |
| Search for the position by Key2. More... | |
Protected Attributes | |
| std::map< Key1, Key2 > | key2LookUp |
| Map used to look up Key2 by Key1. More... | |
| std::map< Key2, Key1 > | key1LookUp |
| Map used to look up Key1 by Key2. More... | |
Additional Inherited Members | |
Public Attributes inherited from std::map< K, T > | |
| K | keys |
| STL member. More... | |
| T | elements |
| STL member. More... | |
DtMultiKeyMap allows storage of a value with two unique keys of different types.
Each key should be unique and of a different type. An example use of this class is to maintain a lookup map of values to both an integer constant and a name.
| typedef KeyPairValueMap::const_iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::const_iterator |
The type definition for the map.
| typedef KeyPairValueMap::iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::iterator |
The type definition for the map.
| typedef std::pair<Key1,Key2> MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::KeyPair |
The type definition for the map.
| typedef std::map<KeyPair,Value> MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::KeyPairValueMap |
The type definition for the map.
| MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::DtMultiKeyMap | ( | ) |
Ctr constructs an empty map.
|
virtual |
Dtr.
| MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::DtMultiKeyMap | ( | const DtMultiKeyMap< Key1, Key2, Value > & | ) |
Copy constructor.
| iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::find | ( | const Key1 & | key1 | ) |
Search for the position by Key1.
| const_iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::find | ( | const Key1 & | key1 | ) | const |
Search for the position by Key1.
| iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::find | ( | const Key2 & | key2 | ) |
Search for the position by Key2.
| const_iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::find | ( | const Key2 & | key2 | ) | const |
Search for the position by Key2.
| iterator MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::insert | ( | Key1 | key1, |
| Key2 | key2, | ||
| Value | value | ||
| ) |
Insert a value with it's two unique keys.
| DtMultiKeyMap<Key1,Key2,Value>& MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::operator= | ( | const DtMultiKeyMap< Key1, Key2, Value > & | ) |
Assignement operator.
| Value& MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::operator[] | ( | const Key1 & | key1 | ) |
Access value via Key1;.
| Value& MAKLogger::DtMultiKeyMap< Key1, Key2, Value >::operator[] | ( | const Key2 & | key2 | ) |
Access value via Key2;.
|
protected |
Map used to look up Key1 by Key2.
|
protected |
Map used to look up Key2 by Key1.