|
LibCDS
|
The implementation for hash map. More...
Data Fields | |
| HashMapData * | pData |
| The container private information. More... | |
| int32_t(* | put )(struct _HashMap *, Pair *, size_t) |
| Insert a key value pair into the map. More... | |
| int32_t(* | get )(struct _HashMap *, Key, size_t, Value *) |
| Retrieve the value corresponding to the designated key. More... | |
| int32_t(* | find )(struct _HashMap *, Key, size_t) |
| Check if the map contains the designated key. More... | |
| int32_t(* | remove )(struct _HashMap *, Key, size_t) |
| Delete the key value pair corresponding to the designated key. More... | |
| int32_t(* | size )(struct _HashMap *) |
| Return the number of stored key value pairs. More... | |
| int32_t(* | iterate )(struct _HashMap *, bool, Pair **) |
| Iterate through the map to retrieve each key value pair. More... | |
| int32_t(* | set_destroy )(struct _HashMap *, void(*)(Pair *)) |
| Set the custom key value pair resource clean method. More... | |
| int32_t(* | set_hash )(struct _HashMap *, uint32_t(*)(Key, size_t)) |
| Set the custom hash function. More... | |
The implementation for hash map.
Definition at line 14 of file hash_map.h.
| HashMapData* HashMap::pData |
The container private information.
Definition at line 16 of file hash_map.h.
| int32_t(* HashMap::put)(struct _HashMap *, Pair *, size_t) |
| int32_t(* HashMap::get)(struct _HashMap *, Key, size_t, Value *) |
Retrieve the value corresponding to the designated key.
Definition at line 24 of file hash_map.h.
| int32_t(* HashMap::find)(struct _HashMap *, Key, size_t) |
Check if the map contains the designated key.
Definition at line 28 of file hash_map.h.
| int32_t(* HashMap::remove)(struct _HashMap *, Key, size_t) |
Delete the key value pair corresponding to the designated key.
Definition at line 32 of file hash_map.h.
| int32_t(* HashMap::size)(struct _HashMap *) |
Return the number of stored key value pairs.
Definition at line 36 of file hash_map.h.
| int32_t(* HashMap::iterate)(struct _HashMap *, bool, Pair **) |
Iterate through the map to retrieve each key value pair.
Definition at line 40 of file hash_map.h.
| int32_t(* HashMap::set_destroy)(struct _HashMap *, void(*)(Pair *)) |
Set the custom key value pair resource clean method.
Definition at line 44 of file hash_map.h.
| int32_t(* HashMap::set_hash)(struct _HashMap *, uint32_t(*)(Key, size_t)) |