csHashSet Class Reference
This class implements a basic set for objects. More...
#include <hashmap.h>
Public Methods | |
csHashSet (uint32 size=211) | |
Construct a new empty set. | |
void | Add (csHashObject object) |
Add an object to this set. | |
void | AddNoTest (csHashObject object) |
Add an object to this set. | |
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. | |
csHashMap * | GetHashMap () |
Return the hash map for this hash set. |
Detailed Description
This class implements a basic set for objects.You can basically use this to test for the occurrence of some object quickly.
Definition at line 287 of file hashmap.h.
Constructor & Destructor Documentation
|
Construct a new empty set. The given size will be given to the hasmap. |
Member Function Documentation
|
Add an object to this set. This will do nothing is the object is already here. |
|
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! |
|
Delete an object from the set. This function does nothing if the object is not in the set. |
|
Delete all elements in the set.
|
|
Return the hash map for this hash set.
|
|
Test if an object is in this set.
|
The documentation for this class was generated from the following file:
- csutil/hashmap.h
Generated for Crystal Space by doxygen 1.2.18