MagickCore
7.0.0
|
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 |
MagickExport MagickBooleanType AppendValueToLinkedList | ( | LinkedListInfo * | , |
const void * | |||
) |
MagickExport void ClearLinkedList | ( | LinkedListInfo * | , |
void * | *)(void * | ||
) |
MagickExport MagickBooleanType CompareHashmapString | ( | const void * | , |
const void * | |||
) |
MagickExport MagickBooleanType CompareHashmapStringInfo | ( | const void * | , |
const void * | |||
) |
MagickExport HashmapInfo* DestroyHashmap | ( | HashmapInfo * | ) |
MagickExport LinkedListInfo* DestroyLinkedList | ( | LinkedListInfo * | , |
void * | *)(void * | ||
) |
MagickExport void * GetLastValueInLinkedList | ( | LinkedListInfo * | ) |
MagickExport void * GetNextKeyInHashmap | ( | HashmapInfo * | ) |
MagickExport void * GetNextValueInHashmap | ( | HashmapInfo * | ) |
MagickExport void * GetNextValueInLinkedList | ( | LinkedListInfo * | ) |
MagickExport size_t GetNumberOfElementsInLinkedList | ( | const LinkedListInfo * | ) |
MagickExport size_t GetNumberOfEntriesInHashmap | ( | const HashmapInfo * | ) |
MagickExport void * GetValueFromHashmap | ( | HashmapInfo * | , |
const void * | |||
) |
MagickExport void * GetValueFromLinkedList | ( | LinkedListInfo * | , |
const size_t | |||
) |
MagickExport size_t HashPointerType | ( | const void * | ) |
MagickExport size_t HashStringInfoType | ( | const void * | ) |
Definition at line 937 of file hashmap.c.
References AcquireSignatureInfo(), DestroySignatureInfo(), FinalizeSignature(), GetSignatureDigest(), GetStringInfoDatum(), and UpdateSignature().
MagickExport size_t HashStringType | ( | const void * | ) |
MagickExport MagickBooleanType InsertValueInLinkedList | ( | LinkedListInfo * | , |
const size_t | , | ||
const void * | |||
) |
MagickExport MagickBooleanType InsertValueInSortedLinkedList | ( | LinkedListInfo * | , |
int(*)(const void *, const void *) | , | ||
void ** | , | ||
const void * | |||
) |
MagickExport MagickBooleanType IsHashmapEmpty | ( | const HashmapInfo * | ) |
MagickExport MagickBooleanType IsLinkedListEmpty | ( | const LinkedListInfo * | ) |
MagickExport MagickBooleanType LinkedListToArray | ( | LinkedListInfo * | , |
void ** | |||
) |
MagickExport HashmapInfo * NewHashmap | ( | const size_t | , |
size_t(*)(const void *) | , | ||
MagickBooleanType(*)(const void *, const void *) | , | ||
void * | *)(void *, | ||
void * | *)(void * | ||
) |
MagickExport LinkedListInfo * NewLinkedList | ( | const size_t | ) |
Definition at line 1363 of file hashmap.c.
References AcquireMagickMemory(), AcquireSemaphoreInfo(), _LinkedListInfo::capacity, _LinkedListInfo::elements, _LinkedListInfo::head, MagickCoreSignature, _LinkedListInfo::next, ResetMagickMemory(), ResourceLimitFatalError, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, and ThrowFatalException.
Referenced by AcquireColorCache(), AcquireConfigureCache(), AcquireDelegateCache(), AcquireLogCache(), AcquireMagicCache(), AcquireMimeCache(), AcquirePolicyCache(), GetConfigureOptions(), GetConfigurePaths(), GetLocaleOptions(), IncreaseHashmapCapacity(), InitializeExceptionInfo(), and PutEntryInHashmap().
MagickExport MagickBooleanType PutEntryInHashmap | ( | HashmapInfo * | , |
const void * | , | ||
const void * | |||
) |
Definition at line 1495 of file hashmap.c.
References AcquireMagickMemory(), _HashmapInfo::capacity, _HashmapInfo::compare, _LinkedListInfo::elements, _HashmapInfo::entries, GetNextValueInLinkedList(), _EntryInfo::hash, _HashmapInfo::hash, _LinkedListInfo::head, IncreaseHashmapCapacity(), InsertValueInLinkedList(), _EntryInfo::key, LockSemaphoreInfo(), MagickCoreSignature, MagickFalse, MagickTrue, _HashmapInfo::map, NewLinkedList(), _LinkedListInfo::next, _HashmapInfo::relinquish_key, _HashmapInfo::relinquish_value, RelinquishMagickMemory(), RemoveElementFromLinkedList(), _HashmapInfo::semaphore, _HashmapInfo::signature, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport void * RemoveElementByValueFromLinkedList | ( | LinkedListInfo * | , |
const void * | |||
) |
MagickExport void * RemoveElementFromLinkedList | ( | LinkedListInfo * | , |
const size_t | |||
) |
MagickExport void * RemoveEntryFromHashmap | ( | HashmapInfo * | , |
const void * | |||
) |
MagickExport void * RemoveLastElementFromLinkedList | ( | LinkedListInfo * | ) |
MagickExport void ResetHashmapIterator | ( | HashmapInfo * | ) |
MagickExport void ResetLinkedListIterator | ( | LinkedListInfo * | ) |
Definition at line 1921 of file hashmap.c.
References _LinkedListInfo::head, LockSemaphoreInfo(), MagickCoreSignature, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, and UnlockSemaphoreInfo().
Referenced by CatchException(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOptions(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetLocaleOptions(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMagicInfo(), GetMagicInfoList(), GetMagicList(), GetMagicPatternExtent(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), InheritException(), IsRightsAuthorized(), and QueryColorname().