Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include "Config.h"
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include "MutableArray.h"
Go to the source code of this file.
Macros | |
#define | _Class _MutableArray |
#define | ARRAY_CHUNK_SIZE 64 |
Functions | |
Class * | _MutableArray (void) |
static int | _quicksort (const void *a, const void *b, void *data) |
GNU qsort_r. More... | |
static void | addObject (MutableArray *self, const ident obj) |
static void | addObjects (MutableArray *self, const ident obj,...) |
static void | addObjectsFromArray (MutableArray *self, const Array *array) |
static MutableArray * | array (void) |
static MutableArray * | arrayWithCapacity (size_t capacity) |
static Object * | copy (const Object *self) |
static void | filter (MutableArray *self, Predicate predicate, ident data) |
static MutableArray * | init (MutableArray *self) |
static void | initialize (Class *clazz) |
static MutableArray * | initWithCapacity (MutableArray *self, size_t capacity) |
static void | insertObjectAtIndex (MutableArray *self, ident obj, size_t index) |
void | quicksort (ident base, size_t count, size_t size, Comparator comparator, ident data) |
A portability wrapper around reentrant qsort. More... | |
static void | removeAllObjects (MutableArray *self) |
static void | removeAllObjectsWithEnumerator (MutableArray *self, ArrayEnumerator enumerator, ident data) |
static void | removeLastObject (MutableArray *self) |
static void | removeObject (MutableArray *self, const ident obj) |
static void | removeObjectAtIndex (MutableArray *self, size_t index) |
static void | setObjectAtIndex (MutableArray *self, const ident obj, size_t index) |
static void | sort (MutableArray *self, Comparator comparator) |
#define _Class _MutableArray |
Definition at line 73 of file MutableArray.c.
#define ARRAY_CHUNK_SIZE 64 |
Definition at line 75 of file MutableArray.c.
Class * _MutableArray | ( | void | ) |
Definition at line 349 of file MutableArray.c.
|
static |
GNU qsort_r.
Definition at line 63 of file MutableArray.c.
|
static |
Definition at line 99 of file MutableArray.c.
|
static |
Definition at line 122 of file MutableArray.c.
|
static |
|
static |
Definition at line 153 of file MutableArray.c.
|
static |
Definition at line 162 of file MutableArray.c.
Definition at line 82 of file MutableArray.c.
|
static |
Definition at line 171 of file MutableArray.c.
|
static |
Definition at line 186 of file MutableArray.c.
|
static |
Definition at line 323 of file MutableArray.c.
|
static |
Definition at line 195 of file MutableArray.c.
|
static |
Definition at line 215 of file MutableArray.c.
void quicksort | ( | ident | base, |
size_t | count, | ||
size_t | size, | ||
Comparator | comparator, | ||
ident | data | ||
) |
A portability wrapper around reentrant qsort.
base | The base of the array to sort. |
count | The count of elements in the array |
size | The size of each element in the array. |
comparator | The Comparator to sort with. |
data | User data. |
Definition at line 67 of file MutableArray.c.
|
static |
Definition at line 232 of file MutableArray.c.
|
static |
Definition at line 243 of file MutableArray.c.
|
static |
Definition at line 259 of file MutableArray.c.
|
static |
Definition at line 270 of file MutableArray.c.
|
static |
Definition at line 282 of file MutableArray.c.
|
static |
|
static |
Definition at line 314 of file MutableArray.c.