CrystalSpace

Public API Reference

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

csHashMapReversible Class Reference

A csHashMap that maintains a reverse hash for indexing key strings by keys. More...

#include <hashmapr.h>

Inheritance diagram for csHashMapReversible:

csHashMap List of all members.

Public Methods

void Put (const char *key, csHashObject object)
 Put element into hash while implementing reversible features.

const char * GetKey (csHashObject value) const
 Get the first original key string with the given value.

const char * GetKey (csHashKey key) const
 Get the first original key string with the given key number.

csHashObject Get (const char *key) const
 Calls Get(csHashCompute(key)).

csHashObject Get (csHashKey key) const
 Get an object from this map.

void Delete (const char *key, csHashObject object)
 Delete the element with the given key string.


Detailed Description

A csHashMap that maintains a reverse hash for indexing key strings by keys.

Definition at line 28 of file hashmapr.h.


Member Function Documentation

void csHashMapReversible::Delete const char *    key,
csHashObject    object
 

Delete the element with the given key string.

csHashObject csHashMapReversible::Get csHashKey    key const [inline]
 

Get an object from this map.

Returns 0 if object is not there. If there are multiple elements with the same key then a random one will be returned. Use an iterator to iterate over all elements with the same key.

Reimplemented from csHashMap.

Definition at line 64 of file hashmapr.h.

References csHashMap::Get().

csHashObject csHashMapReversible::Get const char *    key const
 

Calls Get(csHashCompute(key)).

const char* csHashMapReversible::GetKey csHashKey    key const
 

Get the first original key string with the given key number.

const char* csHashMapReversible::GetKey csHashObject    value const
 

Get the first original key string with the given value.

void csHashMapReversible::Put const char *    key,
csHashObject    object
 

Put element into hash while implementing reversible features.

Does csHashCompute automatically.


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