BALL::HashMap< Key, T > Class Template Reference
HashMap class based on the STL map (containing serveral convenience functions).
More...
#include <BALL/DATATYPE/hashMap.h>
List of all members.
Classes |
class | IllegalKey |
| HashMap illegal key exception. More...
|
Public Types |
|
|
typedef BALL_MAP_NAME | 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.
|
const T & | operator[] (const Key &key) const |
| Return a constant reference to the element whose key is key .
|
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.
|
bool | operator== (const HashMap< Key, T > &rhs) const |
| Equality operator. Check whether two two hashmaps contain the same elements. O(n) runtime.
|
Size | size () const |
Detailed Description
template<class Key, class T>
class BALL::HashMap< Key, T >
HashMap class based on the STL map (containing serveral convenience functions).
Definition at line 180 of file hashMap.h.
Member Typedef Documentation
template<class Key, class T>
template<class Key, class T>
Reimplemented in BALL::StringHashMap< Value >, BALL::StringHashMap< list< Position > >, BALL::StringHashMap< NameMap >, BALL::StringHashMap< JCAMPValue >, BALL::StringHashMap< Position >, BALL::StringHashMap< Atom::Type >, BALL::StringHashMap< Ring >, BALL::StringHashMap< CreateMethod >, BALL::StringHashMap< Index >, BALL::StringHashMap< float >, BALL::StringHashMap< double(*)(double)>, BALL::StringHashMap< RuleList >, BALL::StringHashMap< Vector3 >, BALL::StringHashMap< String >, BALL::StringHashMap< SectionIterator >, BALL::StringHashMap< double * >, BALL::StringHashMap< Elements_ >, BALL::StringHashMap< vector< Position > >, BALL::StringHashMap< vector< Data > >, BALL::StringHashMap< CreationMethod >, BALL::StringHashMap< EmbeddableVector >, BALL::StringHashMap< StringHashMap< StringHashMap< std::multimap< float, AtomNames_ > > > >, BALL::StringHashMap< GAFFCESParser * >, BALL::StringHashMap< block >, BALL::StringHashMap< std::list< String >::iterator >, and BALL::StringHashMap< ColorRGBA >.
Definition at line 207 of file hashMap.h.
template<class Key, class T>
Reimplemented in BALL::StringHashMap< Value >, BALL::StringHashMap< list< Position > >, BALL::StringHashMap< NameMap >, BALL::StringHashMap< JCAMPValue >, BALL::StringHashMap< Position >, BALL::StringHashMap< Atom::Type >, BALL::StringHashMap< Ring >, BALL::StringHashMap< CreateMethod >, BALL::StringHashMap< Index >, BALL::StringHashMap< float >, BALL::StringHashMap< double(*)(double)>, BALL::StringHashMap< RuleList >, BALL::StringHashMap< Vector3 >, BALL::StringHashMap< String >, BALL::StringHashMap< SectionIterator >, BALL::StringHashMap< double * >, BALL::StringHashMap< Elements_ >, BALL::StringHashMap< vector< Position > >, BALL::StringHashMap< vector< Data > >, BALL::StringHashMap< CreationMethod >, BALL::StringHashMap< EmbeddableVector >, BALL::StringHashMap< StringHashMap< StringHashMap< std::multimap< float, AtomNames_ > > > >, BALL::StringHashMap< GAFFCESParser * >, BALL::StringHashMap< block >, BALL::StringHashMap< std::list< String >::iterator >, and BALL::StringHashMap< ColorRGBA >.
Definition at line 206 of file hashMap.h.
template<class Key, class T>
template<class Key, class T>
template<class Key, class T>
Reimplemented in BALL::StringHashMap< Value >, BALL::StringHashMap< list< Position > >, BALL::StringHashMap< NameMap >, BALL::StringHashMap< JCAMPValue >, BALL::StringHashMap< Position >, BALL::StringHashMap< Atom::Type >, BALL::StringHashMap< Ring >, BALL::StringHashMap< CreateMethod >, BALL::StringHashMap< Index >, BALL::StringHashMap< float >, BALL::StringHashMap< double(*)(double)>, BALL::StringHashMap< RuleList >, BALL::StringHashMap< Vector3 >, BALL::StringHashMap< String >, BALL::StringHashMap< SectionIterator >, BALL::StringHashMap< double * >, BALL::StringHashMap< Elements_ >, BALL::StringHashMap< vector< Position > >, BALL::StringHashMap< vector< Data > >, BALL::StringHashMap< CreationMethod >, BALL::StringHashMap< EmbeddableVector >, BALL::StringHashMap< StringHashMap< StringHashMap< std::multimap< float, AtomNames_ > > > >, BALL::StringHashMap< GAFFCESParser * >, BALL::StringHashMap< block >, BALL::StringHashMap< std::list< String >::iterator >, and BALL::StringHashMap< ColorRGBA >.
Definition at line 203 of file hashMap.h.
Member Function Documentation
template<class Key, class T>
Test whether the map contains the given key.
Reimplemented in BALL::StringHashMap< Value >, BALL::StringHashMap< list< Position > >, BALL::StringHashMap< NameMap >, BALL::StringHashMap< JCAMPValue >, BALL::StringHashMap< Position >, BALL::StringHashMap< Atom::Type >, BALL::StringHashMap< Ring >, BALL::StringHashMap< CreateMethod >, BALL::StringHashMap< Index >, BALL::StringHashMap< float >, BALL::StringHashMap< double(*)(double)>, BALL::StringHashMap< RuleList >, BALL::StringHashMap< Vector3 >, BALL::StringHashMap< String >, BALL::StringHashMap< SectionIterator >, BALL::StringHashMap< double * >, BALL::StringHashMap< Elements_ >, BALL::StringHashMap< vector< Position > >, BALL::StringHashMap< vector< Data > >, BALL::StringHashMap< CreationMethod >, BALL::StringHashMap< EmbeddableVector >, BALL::StringHashMap< StringHashMap< StringHashMap< std::multimap< float, AtomNames_ > > > >, BALL::StringHashMap< GAFFCESParser * >, BALL::StringHashMap< block >, BALL::StringHashMap< std::list< String >::iterator >, and BALL::StringHashMap< ColorRGBA >.
Definition at line 211 of file hashMap.h.
template<class Key, class T>
Equality operator. Check whether two two hashmaps contain the same elements. O(n) runtime.
Definition at line 252 of file hashMap.h.
template<class Key, class T >
T & BALL::HashMap< Key, T >::operator[] |
( |
const Key & |
key |
) |
[inline] |
Return a mutable reference to the element whose key is key
. If an element with the key key
does not exist, it is inserted.
Definition at line 272 of file hashMap.h.
template<class Key, class T >
const T & BALL::HashMap< Key, T >::operator[] |
( |
const Key & |
key |
) |
const [inline] |
Return a constant reference to the element whose key is key
.
- Exceptions:
-
Definition at line 237 of file hashMap.h.
template<class Key, class T>