8 #ifndef CNOBJECTDICTIONARY_H
9 #define CNOBJECTDICTIONARY_H
58 static inline struct CNResource *
struct CNList CNListOfKeysInDictionary(struct CNObjectDictionary *src)
Allocate list of all keys in the object dictionary.
static struct CNObject * CNSearchObjectInDictionary(const struct CNObjectDictionary *dict, const struct CNFixedString *key)
Search object in CNObject dictionary.
Definition: CNObjectDictionary.h:72
static struct CNResource * CNResourceOfObjectDictionary(struct CNObjectDictionary *src)
Get resource fot the object dictionary.
Definition: CNObjectDictionary.h:59
Define CNDictionary data structure.
List of pointers.
Definition: CNList.h:17
struct CNDictionary dataDictionary
Definition: CNObjectDictionary.h:21
static CNBoolean CNVisitElementOfObjectDictionary(const struct CNObjectDictionary *src, CNVisitElementOfDictionaryFuncRef visitfunc, void *info)
Visit all elements in the object dictionary.
Definition: CNObjectDictionary.h:129
void * CNSearchDataInDictionary(const struct CNDictionary *dict, const struct CNFixedString *key)
Search data in data dictionary.
Persistent string. There are only one object for each context of string.
Definition: CNFixedString.h:21
Define CNList data structure.
Dictionary of CNObject.
Definition: CNObjectDictionary.h:18
List of CNObject.
Definition: CNObjectList.h:17
Root object.
Definition: CNObject.h:38
static void CNDestroyObjectDictionary(struct CNObjectDictionary *dst)
Deallocate CNObjectDictionary.
Definition: CNObjectDictionary.h:37
static void CNSetObjectToDictionary(struct CNObjectDictionary *dict, const struct CNFixedString *key, struct CNObject *value)
Set object for key to CNObjectDictionary.
Definition: CNObjectDictionary.h:84
struct CNObjectList CNListOfObjectsInDictionary(const struct CNObjectDictionary *src, struct CNResource *resource)
Allocate list of all objects in the object dictionary.
Define CNObject data structure.
struct CNObjectList CNElementListOfObjectDictionary(const struct CNObjectDictionary *src, struct CNResource *resource)
Make object list of dictionary.
Dictionary of pointer.
Definition: CNDictionary.h:28
static void CNRetainObject(struct CNObject *dst)
Retain the object.
Definition: CNObject.h:75
static struct CNResource * CNResourceOfDictionary(struct CNDictionary *src)
Get resource fot the dictionary.
Definition: CNDictionary.h:73
void CNInitObjectDictionary(struct CNObjectDictionary *dst, struct CNResource *resource)
Initialize CNObjectDictionary.
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
void CNSetDataToDictionary(struct CNDictionary *dict, const struct CNFixedString *key, void *value)
Set data for key to CNDictionary.
static size_t CNCountOfObjectDictionary(const struct CNObjectDictionary *src)
Number of items in object dictionary.
Definition: CNObjectDictionary.h:48
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
struct CNResource * resource
Definition: CNDictionary.h:31