#include <hashmap.h>
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... | |
csHashMap* | GetHashMap () |
Return the hash map for this hash set. |
You can basicly use this to test for the occurance of some object quickly.
|
Construct a new empty set. The given size will be given to the hasmap. |
|
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. @@ Not implemented yet! |