BALL
1.4.79
|
HashMap class based on the STL map (containing serveral convenience functions) More...
#include <BALL/DATATYPE/hashMap.h>
Classes | |
class | IllegalKey |
HashMap illegal key exception. More... | |
Public Types | |
OpenMS style typedefs | |
typedef boost::unordered_map < Key, T > | Base |
typedef Base::value_type | ValueType |
typedef Key | KeyType |
typedef Base::value_type * | PointerType |
typedef Base::iterator | Iterator |
typedef Base::const_iterator | ConstIterator |
Public Member Functions | |
bool | has (const Key &key) const |
Test whether the map contains the given key. More... | |
const T & | operator[] (const Key &key) const |
Return a constant reference to the element whose key is key . More... | |
T & | operator[] (const Key &key) |
Return a mutable reference to the element whose key is key . If an element with the key key does not exist, it is inserted. More... | |
bool | operator== (const HashMap< Key, T > &rhs) const |
Equality operator. Check whether two two hashmaps contain the same elements. O(n) runtime. More... | |
Size | size () const |
HashMap class based on the STL map (containing serveral convenience functions)
typedef boost::unordered_map<Key, T> BALL::HashMap< Key, T >::Base |
typedef Base::const_iterator BALL::HashMap< Key, T >::ConstIterator |
typedef Base::iterator BALL::HashMap< Key, T >::Iterator |
typedef Key BALL::HashMap< Key, T >::KeyType |
typedef Base::value_type* BALL::HashMap< Key, T >::PointerType |
typedef Base::value_type BALL::HashMap< Key, T >::ValueType |
|
inline |
bool BALL::HashMap< Key, T >::operator== | ( | const HashMap< Key, T > & | rhs | ) | const |
const T & BALL::HashMap< Key, T >::operator[] | ( | const Key & | key | ) | const |
Return a constant reference to the element whose key is key
.
IllegalKey | if the given key does not exist |
T & BALL::HashMap< Key, T >::operator[] | ( | const Key & | key | ) |
|
inline |