10 #define multiKeyMap_H_
20 template <
typename Key1,
typename Key2,
typename Value>
25 typedef std::pair<Key1,Key2>
KeyPair;
28 typedef typename KeyPairValueMap::iterator
iterator;
74 #define multiKeyMap_INC_
75 #include "multiKeyMap.inl"
76 #undef multiKeyMap_INC_
DtMultiKeyMap()
Ctr constructs an empty map.
iterator insert(Key1 key1, Key2 key2, Value value)
Insert a value with it's two unique keys.
virtual ~DtMultiKeyMap()
Dtr.
KeyPairValueMap::iterator iterator
The type definition for the map.
Definition: multiKeyMap.h:28
std::map< Key2, Key1 > key1LookUp
Map used to look up Key1 by Key2.
Definition: multiKeyMap.h:70
std::map< Key1, Key2 > key2LookUp
Map used to look up Key2 by Key1.
Definition: multiKeyMap.h:68
KeyPairValueMap::const_iterator const_iterator
The type definition for the map.
Definition: multiKeyMap.h:29
DtMultiKeyMap allows storage of a value with two unique keys of different types.
Definition: multiKeyMap.h:21
std::pair< Key1, Key2 > KeyPair
The type definition for the map.
Definition: multiKeyMap.h:26
Value & operator[](const Key1 &key1)
Access value via Key1;.
std::map< KeyPair, Value > KeyPairValueMap
The type definition for the map.
Definition: multiKeyMap.h:27
DtMultiKeyMap< Key1, Key2, Value > & operator=(const DtMultiKeyMap< Key1, Key2, Value > &)
Assignement operator.
iterator find(const Key1 &key1)
Search for the position by Key1.