41typedef struct ArrayInterface ArrayInterface;
91struct ArrayInterface {
96 ObjectInterface objectInterface;
123 void (*addObjectsFromArray)(
Array *self,
const Array *array);
132 Array *(*array)(void);
152 Array *(*arrayWithCapacity)(
size_t capacity);
172 Array *(*arrayWithVaList)(va_list args);
182 String *(*componentsJoinedByCharacters)(
const Array *self,
const char *chars);
259 ssize_t (*indexOfObject)(
const Array *self,
const ident obj);
288 Array *(*initWithCapacity)(
Array *self,
size_t capacity);
307 Array *(*initWithVaList)(
Array *self, va_list args);
317 void (*insertObjectAtIndex)(
Array *self,
ident obj,
size_t index);
355 ident (*objectAtIndex)(
const Array *self,
size_t index);
374 void (*removeAllObjects)(
Array *self);
392 void (*removeLastObject)(
Array *self);
410 void (*removeObjectAtIndex)(
Array *self,
size_t index);
421 void (*setObjectAtIndex)(
Array *self,
const ident obj,
size_t index);
static Array * array(void)
void(* ArrayEnumerator)(const Array *array, ident obj, ident data)
A function pointer for Array enumeration (iteration).
OBJECTIVELY_EXPORT Class * _Array(void)
OBJECTIVELY_EXPORT void quicksort(ident base, size_t count, size_t size, Comparator comparator, ident data)
A portability wrapper around reentrant qsort.
Object is the root Class of The Objectively Class hierarchy.
static String * string(void)
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
bool(* Predicate)(const ident obj, ident data)
The Predicate function type for filtering Objects.
Order(* Comparator)(const ident obj1, const ident obj2)
The Comparator function type for ordering Objects.
ident(* Functor)(const ident obj, ident data)
The Functor function type for transforming Objects.
ident(* Reducer)(const ident obj, ident accumulator, ident data)
The Reducer function type for reducing collections.
ArrayInterface * interface
The interface.
Object object
The superclass.
size_t count
The count of elements.
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.