CrystalSpace

Public API Reference

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

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. More...

void DeleteAll ()
 Delete all elements in the set. More...

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

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


Detailed Description

This class implements a basic set for objects.

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

Definition at line 287 of file hashmap.h.


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.

void csHashSet::DeleteAll  
 

Delete all elements in the set.

csHashMap* csHashSet::GetHashMap   [inline]
 

Return the hash map for this hash set.

Definition at line 330 of file hashmap.h.

bool csHashSet::In csHashObject    object
 

Test if an object is in this set.


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