LibCDS
HashSet Struct Reference

The implementation for hash set. More...

Data Fields

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

Detailed Description

The implementation for hash set.

Definition at line 14 of file hash_set.h.

Field Documentation

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)

Insert a key into the set.

See Also
HashSetAdd

Definition at line 20 of file hash_set.h.

int32_t(* HashSet::find)(struct _HashSet *, Key, size_t)

Check if the set contains the designated key.

See Also
HashSetFind

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.

See Also
HashSetRemove

Definition at line 28 of file hash_set.h.

int32_t(* HashSet::size)(struct _HashSet *)

Return the number of stored unique keys.

See Also
HashSetSize

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.

See Also
HashSetIterate

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.

See Also
HashSetSetDestroy

Definition at line 40 of file hash_set.h.

int32_t(* HashSet::set_hash)(struct _HashSet *, uint32_t(*)(Key, size_t))

Set the custom hash function.

See Also
HashSetSetHash

Definition at line 44 of file hash_set.h.