Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csHashSet Class Reference

This class implements a basic set for objects. More...

#include <hashmap.h>

List of all members.

Public Methods

 csHashSet (uint32 size=211)
 Construct a new empty set. More...

void Add (csHashObject object)
 Add an object to this set. More...

void AddNoTest (csHashObject object)
 Add an object to this set. More...

bool In (csHashObject object)
 Test if an object is in this set.

void DeleteAll ()
 Delete all elements in the set.

void Delete (csHashObject object)
 Delete an object from the set. More...

csHashMapGetHashMap ()
 Return the hash map for this hash set.


Detailed Description

This class implements a basic set for objects.

You can basicly use this to test for the occurance of some object quickly.


Constructor & Destructor Documentation

csHashSet::csHashSet ( uint32 size = 211 )
 

Construct a new empty set.

The given size will be given to the hasmap.


Member Function Documentation

void csHashSet::Add ( csHashObject object )
 

Add an object to this set.

This will do nothing is the object is already here.

void csHashSet::AddNoTest ( csHashObject object )
 

Add an object to this set.

This function does not test if the object is already there. This is used for efficiency reasons. But use with care!

void csHashSet::Delete ( csHashObject object )
 

Delete an object from the set.

This function does nothing if the object is not in the set. @@ Not implemented yet!


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000