|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <assert.h>#include <stdarg.h>#include <stdlib.h>#include "Dictionary.h"#include "Hash.h"#include "String.h"#include "Null.h"Go to the source code of this file.
Macros | |
| #define | _Class _Dictionary |
| #define | DICTIONARY_DEFAULT_CAPACITY 64 |
| #define | DICTIONARY_GROW_FACTOR 2.0 |
| #define | DICTIONARY_MAX_LOAD 0.75f |
Functions | |
| Class * | _Dictionary (void) |
| static void | addEntriesFromDictionary (Dictionary *self, const Dictionary *dictionary) |
| static void | addEntriesFromDictionary_enumerator (const Dictionary *dict, ident obj, ident key, ident data) |
| DictionaryEnumerator for addEntriesFromDictionary. | |
| static Array * | allKeys (const Dictionary *self) |
| static void | allKeys_enumerator (const Dictionary *dict, ident obj, ident key, ident data) |
| DictionaryEnumerator for allKeys. | |
| static Array * | allObjects (const Dictionary *self) |
| static void | allObjects_enumerator (const Dictionary *dict, ident obj, ident key, ident data) |
| DictionaryEnumerator for allObjects. | |
| static bool | containsKey (const Dictionary *self, const ident key) |
| static bool | containsKeyPath (const Dictionary *self, const char *path) |
| static Object * | copy (const Object *self) |
| static void | dealloc (Object *self) |
| static String * | description (const Object *self) |
| static void | description_enumerator (const Dictionary *dict, ident obj, ident key, ident data) |
| A DictionaryEnumerator for description. | |
| static Dictionary * | dictionary (void) |
| static Dictionary * | dictionaryWithCapacity (size_t capacity) |
| static Dictionary * | dictionaryWithDictionary (const Dictionary *dictionary) |
| static Dictionary * | dictionaryWithObjectsAndKeys (ident obj,...) |
| static void | enumerateObjectsAndKeys (const Dictionary *self, DictionaryEnumerator enumerator, ident data) |
| static Dictionary * | filterObjectsAndKeys (const Dictionary *self, DictionaryPredicate predicate, ident data) |
| static int | hash (const Object *self) |
| static Dictionary * | init (Dictionary *self) |
| static void | initialize (Class *clazz) |
| static Dictionary * | initWithCapacity (Dictionary *self, size_t capacity) |
| static Dictionary * | initWithDictionary (Dictionary *self, const Dictionary *dictionary) |
| static Dictionary * | initWithObjectsAndKeys (Dictionary *self,...) |
| static bool | isEqual (const Object *self, const Object *other) |
| static ident | objectForKey (const Dictionary *self, const ident key) |
| static ident | objectForKeyPath (const Dictionary *self, const char *path) |
| static ident | objectForKeyPathWithClass (const Dictionary *self, const char *path, const Class *clazz) |
| static void | removeAllObjects (Dictionary *self) |
| static void | removeAllObjectsWithEnumerator (Dictionary *self, DictionaryEnumerator enumerator, ident data) |
| static void | removeObjectForKey (Dictionary *self, const ident key) |
| static void | removeObjectForKeyPath (Dictionary *self, const char *path) |
| static void | setObjectForKey (Dictionary *self, const ident obj, const ident key) |
| static void | setObjectForKey_resize (Dictionary *dict) |
| A helper for resizing Dictionaries as pairs are added to them. | |
| static void | setObjectForKeyPath (Dictionary *self, const ident obj, const char *path) |
| static void | setObjectsForKeyPaths (Dictionary *self,...) |
| static void | setObjectsForKeys (Dictionary *self,...) |
| #define _Class _Dictionary |
Definition at line 33 of file Dictionary.c.
| #define DICTIONARY_DEFAULT_CAPACITY 64 |
Definition at line 35 of file Dictionary.c.
| #define DICTIONARY_GROW_FACTOR 2.0 |
Definition at line 36 of file Dictionary.c.
| #define DICTIONARY_MAX_LOAD 0.75f |
Definition at line 37 of file Dictionary.c.
| Class * _Dictionary | ( | void | ) |
Definition at line 762 of file Dictionary.c.
|
static |
Definition at line 175 of file Dictionary.c.
|
static |
DictionaryEnumerator for addEntriesFromDictionary.
Definition at line 167 of file Dictionary.c.
|
static |
Definition at line 193 of file Dictionary.c.
|
static |
|
static |
Definition at line 213 of file Dictionary.c.
|
static |
|
static |
Definition at line 226 of file Dictionary.c.
|
static |
Definition at line 234 of file Dictionary.c.
Definition at line 44 of file Dictionary.c.
|
static |
Definition at line 59 of file Dictionary.c.
Definition at line 91 of file Dictionary.c.
|
static |
A DictionaryEnumerator for description.
Definition at line 75 of file Dictionary.c.
|
static |
Definition at line 242 of file Dictionary.c.
|
static |
Definition at line 251 of file Dictionary.c.
|
static |
Definition at line 260 of file Dictionary.c.
|
static |
Definition at line 269 of file Dictionary.c.
|
static |
Definition at line 295 of file Dictionary.c.
|
static |
Definition at line 320 of file Dictionary.c.
|
static |
Definition at line 109 of file Dictionary.c.
|
static |
Definition at line 350 of file Dictionary.c.
|
static |
Definition at line 722 of file Dictionary.c.
|
static |
Definition at line 359 of file Dictionary.c.
|
static |
Definition at line 379 of file Dictionary.c.
|
static |
Definition at line 409 of file Dictionary.c.
Definition at line 127 of file Dictionary.c.
|
static |
Definition at line 439 of file Dictionary.c.
|
static |
Definition at line 463 of file Dictionary.c.
|
static |
Definition at line 480 of file Dictionary.c.
|
static |
|
static |
Definition at line 517 of file Dictionary.c.
|
static |
Definition at line 547 of file Dictionary.c.
|
static |
Definition at line 577 of file Dictionary.c.
|
static |
Definition at line 634 of file Dictionary.c.
|
static |
A helper for resizing Dictionaries as pairs are added to them.
Definition at line 590 of file Dictionary.c.
|
static |
Definition at line 662 of file Dictionary.c.
|
static |
Definition at line 675 of file Dictionary.c.
|
static |
Definition at line 698 of file Dictionary.c.