16 #define CNHashTableSizeOfDictionary 64
23 struct CNDictionaryItem ;
72 static inline struct CNResource *
void(* CNReleaseDictionaryItemFuncRef)(void *item, struct CNResource *resource)
Definition: CNDictionary.h:19
size_t itemCount
Number of items.
Definition: CNDictionary.h:33
struct CNDictionaryItem * dictionaryItems[CNHashTableSizeOfDictionary]
Array of data.
Definition: CNDictionary.h:35
Forward declaration of data types.
void * CNSearchDataInDictionary(const struct CNDictionary *dict, const struct CNFixedString *key)
Search data in data dictionary.
Define CNArray data structure.
Persistent string. There are only one object for each context of string.
Definition: CNFixedString.h:21
CNReleaseDictionaryItemFuncRef releaseFunc
Function to release the item of dictionary.
Definition: CNDictionary.h:37
Define CNFixedString class.
void CNInitDictionary(struct CNDictionary *dst, CNReleaseDictionaryItemFuncRef func, struct CNResource *resource)
Initialize CNDictionary.
Dictionary of pointer.
Definition: CNDictionary.h:28
static struct CNResource * CNResourceOfDictionary(struct CNDictionary *src)
Get resource fot the dictionary.
Definition: CNDictionary.h:73
static size_t CNCountOfDictionary(const struct CNDictionary *src)
Number of items in dictionary.
Definition: CNDictionary.h:62
CNBoolean CNVisitElementOfDictionary(const struct CNDictionary *src, CNVisitElementOfDictionaryFuncRef visitfunc, void *info)
Visit all elements in the dictionary.
void CNDestroyDictionary(struct CNDictionary *dst)
Deallocate CNDictionary.
CNBoolean(* CNVisitElementOfDictionaryFuncRef)(const struct CNFixedString *key, void *src, void *info)
Definition: CNDictionary.h:21
#define CNHashTableSizeOfDictionary
Definition: CNDictionary.h:16
void CNSetDataToDictionary(struct CNDictionary *dict, const struct CNFixedString *key, void *value)
Set data for key to CNDictionary.
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
struct CNResource * resource
Definition: CNDictionary.h:31