Template Class Hashmap
Defined in File Hashmap.h
Class Documentation
-
template<class KeyType, class ValueType>
class Hashmap -
Public Functions
-
inline FORCE_INLINE Hashmap(const unsigned int bucketCount)
-
inline ~Hashmap()
- inline FORCE_INLINE void clear ()
- inline FORCE_INLINE KeyValueMap * getKeyValueMap (const unsigned int index)
- inline FORCE_INLINE void reset ()
- inline FORCE_INLINE unsigned int bucket_count () const
Return the bucket count.
- inline FORCE_INLINE ValueType * find (const KeyType &key)
Find element.
- inline FORCE_INLINE void insert (const KeyType &key, const ValueType &value)
Insert element.
- inline FORCE_INLINE void remove (const KeyType &key)
Remove the given element and return true, if the element was found.
- inline FORCE_INLINE ValueType & operator[] (const KeyType &key)
- inline FORCE_INLINE const ValueType & operator[] (const KeyType &key) const
- inline FORCE_INLINE const ValueType * query (const KeyType &key) const
- inline FORCE_INLINE ValueType * query (const KeyType &key)
Protected Functions
- inline FORCE_INLINE void init ()
- inline FORCE_INLINE void cleanup ()
-
inline FORCE_INLINE Hashmap(const unsigned int bucketCount)