MagickCore 7.0.10
|
Go to the source code of this file.
Macros | |
#define | SmallHashmapSize 17 |
#define | MediumHashmapSize 509 |
#define | LargeHashmapSize 8191 |
#define | HugeHashmapSize 131071 |
Typedefs | |
typedef struct _HashmapInfo | HashmapInfo |
typedef struct _LinkedListInfo | LinkedListInfo |
typedef struct _HashmapInfo HashmapInfo |
typedef struct _LinkedListInfo LinkedListInfo |
WizardExport WizardBooleanType AppendValueToLinkedList | ( | LinkedListInfo * | , |
const void * | |||
) |
WizardExport void ClearLinkedList | ( | LinkedListInfo * | , |
void * | *)(void * | ||
) |
WizardExport WizardBooleanType CompareHashmapString | ( | const void * | , |
const void * | |||
) |
WizardExport WizardBooleanType CompareHashmapStringInfo | ( | const void * | , |
const void * | |||
) |
WizardExport HashmapInfo * DestroyHashmap | ( | HashmapInfo * | ) |
WizardExport LinkedListInfo * DestroyLinkedList | ( | LinkedListInfo * | , |
void * | *)(void * | ||
) |
WizardExport void * GetLastValueInLinkedList | ( | LinkedListInfo * | ) |
WizardExport void * GetNextKeyInHashmap | ( | HashmapInfo * | ) |
WizardExport void * GetNextValueInHashmap | ( | HashmapInfo * | ) |
WizardExport void * GetNextValueInLinkedList | ( | LinkedListInfo * | ) |
WizardExport size_t GetNumberOfElementsInLinkedList | ( | const LinkedListInfo * | ) |
WizardExport size_t GetNumberOfEntriesInHashmap | ( | const HashmapInfo * | hashmap_info | ) |
Definition at line 646 of file hashmap.c.
References _HashmapInfo::entries, _HashmapInfo::signature, and WizardSignature.
WizardExport void * GetValueFromHashmap | ( | HashmapInfo * | , |
const void * | |||
) |
WizardExport void * GetValueFromLinkedList | ( | LinkedListInfo * | , |
const size_t | |||
) |
WizardExport size_t HashPointerType | ( | const void * | ) |
WizardExport size_t HashStringInfoType | ( | const void * | string | ) |
Definition at line 941 of file hashmap.c.
References GetStringInfoDatum(), and GetStringInfoLength().
WizardExport size_t HashStringType | ( | const void * | ) |
WizardExport WizardBooleanType InsertValueInLinkedList | ( | LinkedListInfo * | , |
const size_t | , | ||
const void * | |||
) |
WizardExport WizardBooleanType InsertValueInSortedLinkedList | ( | LinkedListInfo * | , |
int(*)(const void *, const void *) | , | ||
void ** | , | ||
const void * | |||
) |
WizardExport WizardBooleanType IsHashmapEmpty | ( | const HashmapInfo * | ) |
WizardExport WizardBooleanType IsLinkedListEmpty | ( | const LinkedListInfo * | ) |
WizardExport WizardBooleanType LinkedListToArray | ( | LinkedListInfo * | , |
void ** | |||
) |
WizardExport HashmapInfo * NewHashmap | ( | const size_t | , |
size_t(*)(const void *) | , | ||
WizardBooleanType(*)(const void *, const void *) | , | ||
void * | *)(void *, | ||
void * | *)(void * | ||
) |
WizardExport LinkedListInfo * NewLinkedList | ( | const size_t | capacity | ) |
Definition at line 1362 of file hashmap.c.
References AcquireSemaphoreInfo(), AcquireWizardMemory(), CacheDomain, _LinkedListInfo::capacity, _LinkedListInfo::elements, _LinkedListInfo::head, MemoryError, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, ThrowWizardFatalError, and WizardSignature.
Referenced by AcquireConfigureCache(), AcquireLogCache(), AcquireMimeCache(), GetConfigureOptions(), GetConfigurePaths(), GetExceptionInfo(), GetLocaleOptions(), IncreaseHashmapCapacity(), and PutEntryInHashmap().
WizardExport WizardBooleanType PutEntryInHashmap | ( | HashmapInfo * | hashmap_info, |
const void * | key, | ||
const void * | value | ||
) |
Definition at line 1493 of file hashmap.c.
References AcquireWizardMemory(), _HashmapInfo::capacity, _HashmapInfo::compare, _LinkedListInfo::elements, _HashmapInfo::entries, GetNextValueInLinkedList(), _EntryInfo::hash, _HashmapInfo::hash, _LinkedListInfo::head, IncreaseHashmapCapacity(), InsertValueInLinkedList(), _EntryInfo::key, LockSemaphoreInfo(), _HashmapInfo::map, NewLinkedList(), _LinkedListInfo::next, _HashmapInfo::relinquish_key, _HashmapInfo::relinquish_value, RelinquishWizardMemory(), RemoveElementFromLinkedList(), _HashmapInfo::semaphore, _HashmapInfo::signature, UnlockSemaphoreInfo(), _EntryInfo::value, WizardFalse, WizardSignature, and WizardTrue.
WizardExport void * RemoveElementByValueFromLinkedList | ( | LinkedListInfo * | , |
const void * | |||
) |
WizardExport void * RemoveElementFromLinkedList | ( | LinkedListInfo * | , |
const size_t | |||
) |
WizardExport void * RemoveEntryFromHashmap | ( | HashmapInfo * | , |
const void * | |||
) |
WizardExport void * RemoveLastElementFromLinkedList | ( | LinkedListInfo * | ) |
WizardExport void ResetHashmapIterator | ( | HashmapInfo * | ) |
WizardExport void ResetLinkedListIterator | ( | LinkedListInfo * | list_info | ) |
Definition at line 1919 of file hashmap.c.
References _LinkedListInfo::head, LockSemaphoreInfo(), _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, UnlockSemaphoreInfo(), and WizardSignature.
Referenced by CatchException(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOptions(), GetLocaleOptions(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), and InheritException().