csHashReversible< T, K, KeyHandler, ReverseKeyHandler > Class Template Reference
A csHash<> that maintains a reverse hash for indexing keys by values. More...
#include <hashr.h>
Inheritance diagram for csHashReversible< T, K, KeyHandler, ReverseKeyHandler >:

Public Methods | |
void | Put (const K &key, const T &value) |
Add an element to the hash and reverse table. | |
const K & | GetKey (const T &key) const |
Get the first key matching the given value, or 0 if there is none. |
Detailed Description
template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>, class ReverseKeyHandler = csIntegralHashKeyHandler<T>>
class csHashReversible< T, K, KeyHandler, ReverseKeyHandler >
A csHash<> that maintains a reverse hash for indexing keys by values.
Definition at line 30 of file hashr.h.
Member Function Documentation
|
Get the first key matching the given value, or 0 if there is none.
Definition at line 44 of file hashr.h. References csHash< K, T, ReverseKeyHandler >::Get(). |
|
Add an element to the hash and reverse table.
Reimplemented from csHash< T, K, KeyHandler >. Definition at line 37 of file hashr.h. References csHash< K, T, ReverseKeyHandler >::Put(), and csHash< T, K, KeyHandler >::Put(). |
The documentation for this class was generated from the following file:
- csutil/hashr.h
Generated for Crystal Space by doxygen 1.2.18