LibCDS
|
The implementation for hash set. More...
Data Fields | |
HashSetData * | pData |
The container private information. More... | |
int32_t(* | add )(struct _HashSet *, Key, size_t) |
Insert a key into the set. More... | |
int32_t(* | find )(struct _HashSet *, Key, size_t) |
Check if the set contains the designated key. More... | |
int32_t(* | remove )(struct _HashSet *, Key, size_t) |
Delete the designated key from the set. More... | |
int32_t(* | size )(struct _HashSet *) |
Return the number of stored unique keys. More... | |
int32_t(* | iterate )(struct _HashSet *, bool, Key *) |
Iterate through the set to retrieve each key. More... | |
int32_t(* | set_destroy )(struct _HashSet *, void(*)(Key)) |
Set the custom key resource clean method. More... | |
int32_t(* | set_hash )(struct _HashSet *, uint32_t(*)(Key, size_t)) |
Set the custom hash function. More... | |
The implementation for hash set.
Definition at line 14 of file hash_set.h.
HashSetData* HashSet::pData |
The container private information.
Definition at line 16 of file hash_set.h.
int32_t(* HashSet::add)(struct _HashSet *, Key, size_t) |
int32_t(* HashSet::find)(struct _HashSet *, Key, size_t) |
Check if the set contains the designated key.
Definition at line 24 of file hash_set.h.
int32_t(* HashSet::remove)(struct _HashSet *, Key, size_t) |
Delete the designated key from the set.
Definition at line 28 of file hash_set.h.
int32_t(* HashSet::size)(struct _HashSet *) |
Return the number of stored unique keys.
Definition at line 32 of file hash_set.h.
int32_t(* HashSet::iterate)(struct _HashSet *, bool, Key *) |
Iterate through the set to retrieve each key.
Definition at line 36 of file hash_set.h.
int32_t(* HashSet::set_destroy)(struct _HashSet *, void(*)(Key)) |
Set the custom key resource clean method.
Definition at line 40 of file hash_set.h.
int32_t(* HashSet::set_hash)(struct _HashSet *, uint32_t(*)(Key, size_t)) |