le_hashmap.h
Go to the documentation of this file.
162 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------186 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------199 (203 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------215 (221 //--------------------------------------------------------------------------------------------------223 * Prototype for callback functions for the iterator function le_hashmap_ForEach(). This function should231 //--------------------------------------------------------------------------------------------------233 (239 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------335 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------364 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------380 * Iterates over the whole map, calling the supplied callback with each key-value pair. If the callback386 //--------------------------------------------------------------------------------------------------394 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------413 //--------------------------------------------------------------------------------------------------421 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------441 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------467 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------485 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------506 //--------------------------------------------------------------------------------------------------516 //--------------------------------------------------------------------------------------------------524 //--------------------------------------------------------------------------------------------------531 //--------------------------------------------------------------------------------------------------539 //--------------------------------------------------------------------------------------------------546 //--------------------------------------------------------------------------------------------------554 //--------------------------------------------------------------------------------------------------562 //--------------------------------------------------------------------------------------------------570 //--------------------------------------------------------------------------------------------------577 //--------------------------------------------------------------------------------------------------585 //--------------------------------------------------------------------------------------------------593 //--------------------------------------------------------------------------------------------------601 //--------------------------------------------------------------------------------------------------608 //--------------------------------------------------------------------------------------------------616 //--------------------------------------------------------------------------------------------------626 //--------------------------------------------------------------------------------------------------629 * the trace keyword for this hashmap (the hashmap's name) is enabled for the "framework" component633 //--------------------------------------------------------------------------------------------------640 //--------------------------------------------------------------------------------------------------644 //--------------------------------------------------------------------------------------------------void le_hashmap_EnableTrace(le_hashmap_Ref_t mapRef)void * le_hashmap_GetStoredKey(le_hashmap_Ref_t mapRef, const void *keyPtr)le_hashmap_It_Ref_t le_hashmap_GetIterator(le_hashmap_Ref_t mapRef)size_t(* le_hashmap_HashFunc_t)(const void *keyToHashPtr)Definition: le_hashmap.h:199void const * le_hashmap_GetValue(le_hashmap_It_Ref_t iteratorRef)size_t le_hashmap_Size(le_hashmap_Ref_t mapRef)bool le_hashmap_EqualsString(const void *firstStringPtr, const void *secondStringPtr)size_t le_hashmap_HashUInt32(const void *intToHashPtr)size_t le_hashmap_HashString(const void *stringToHashPtr)void le_hashmap_ForEach(le_hashmap_Ref_t mapRef, le_hashmap_ForEachHandler_t forEachFn, void *contextPtr)bool le_hashmap_isEmpty(le_hashmap_Ref_t mapRef)bool le_hashmap_EqualsVoidPointer(const void *firstVoidPtr, const void *secondVoidPtr)void * le_hashmap_Put(le_hashmap_Ref_t mapRef, const void *keyPtr, const void *valuePtr)void const * le_hashmap_GetKey(le_hashmap_It_Ref_t iteratorRef)bool(* le_hashmap_EqualsFunc_t)(const void *firstKeyPtr, const void *secondKeyPtr)Definition: le_hashmap.h:215bool(* le_hashmap_ForEachHandler_t)(const void *keyPtr, const void *valuePtr, void *contextPtr)Definition: le_hashmap.h:233size_t le_hashmap_CountCollisions(le_hashmap_Ref_t mapRef)le_result_t le_hashmap_GetFirstNode(le_hashmap_Ref_t mapRef, void **firstKeyPtr, void **firstValuePtr)size_t le_hashmap_HashVoidPointer(const void *voidToHashPtr)void le_hashmap_MakeTraceable(le_hashmap_Ref_t mapRef)void * le_hashmap_Remove(le_hashmap_Ref_t mapRef, const void *keyPtr)bool le_hashmap_ContainsKey(le_hashmap_Ref_t mapRef, const void *keyPtr)le_hashmap_Ref_t le_hashmap_Create(const char *nameStr, size_t capacity, le_hashmap_HashFunc_t hashFunc, le_hashmap_EqualsFunc_t equalsFunc)void le_hashmap_RemoveAll(le_hashmap_Ref_t mapRef)void * le_hashmap_Get(le_hashmap_Ref_t mapRef, const void *keyPtr)le_result_t le_hashmap_NextNode(le_hashmap_It_Ref_t iteratorRef)bool le_hashmap_EqualsUInt32(const void *firstIntPtr, const void *secondIntPtr)le_result_t le_hashmap_PrevNode(le_hashmap_It_Ref_t iteratorRef)le_result_t le_hashmap_GetNodeAfter(le_hashmap_Ref_t mapRef, const void *keyPtr, void **nextKeyPtr, void **nextValuePtr)