33typedef struct MutableArrayInterface MutableArrayInterface;
63struct MutableArrayInterface {
68 ArrayInterface arrayInterface;
void(* ArrayEnumerator)(const Array *array, ident obj, ident data)
A function pointer for Array enumeration (iteration).
static void removeObject(MutableArray *self, const ident obj)
static void sort(MutableArray *self, Comparator comparator)
static void insertObjectAtIndex(MutableArray *self, ident obj, size_t index)
static void removeAllObjectsWithEnumerator(MutableArray *self, ArrayEnumerator enumerator, ident data)
static void removeAllObjects(MutableArray *self)
static void removeLastObject(MutableArray *self)
static void addObjects(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 MutableArray * array(void)
static void filter(MutableArray *self, Predicate predicate, ident data)
static void addObjectsFromArray(MutableArray *self, const Array *array)
static void addObject(MutableArray *self, const ident obj)
OBJECTIVELY_EXPORT void quicksort(ident base, size_t count, size_t size, Comparator comparator, ident data)
A portability wrapper around reentrant qsort.
static MutableData * data(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.
The runtime representation of a Class.
Array array
The superclass.
MutableArrayInterface * interface
The interface.
Class * _MutableArray(void)
The MutableArray archetype.
MutableData * data(void)
Returns a new MutableData.