CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csHashReversible Class Template Reference

A csHash<> that maintains a reverse hash for indexing keys by values. More...

#include <hashr.h>

Inheritance diagram for csHashReversible:

csHash List of all members.

Public Methods

void Put (const K &key, const T &value)
 Add an element to the hash and reverse table. More...

const K & GetKey (const T &key) const
 Get the first key matching the given value, or 0 if there is none. More...


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

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>, class ReverseKeyHandler = csIntegralHashKeyHandler<T>>
const K& csHashReversible< T, K, KeyHandler, ReverseKeyHandler >::GetKey const T &    key const [inline]
 

Get the first key matching the given value, or 0 if there is none.

Definition at line 44 of file hashr.h.

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>, class ReverseKeyHandler = csIntegralHashKeyHandler<T>>
void csHashReversible< T, K, KeyHandler, ReverseKeyHandler >::Put const K &    key,
const T &    value
[inline]
 

Add an element to the hash and reverse table.

Reimplemented from csHash.

Definition at line 37 of file hashr.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14