399 {
400
405
422}
static ident reduce(const Vector *self, Reducer reducer, ident accumulator, ident data)
static ident find(const Vector *self, Predicate predicate, ident data)
static void add(Vector *self, const ident element)
static bool isEqual(const Object *self, const Object *other)
static void resize(Vector *self, size_t capacity)
static void filter(Vector *self, Predicate predicate, ident data)
static Vector * initWithElements(Vector *self, size_t size, size_t count, ident elements)
static ssize_t indexOf(const Vector *self, const ident element)
static void enumerate(const Vector *self, VectorEnumerator enumerator, ident data)
static Vector * vectorWithElements(size_t size, size_t count, ident elements)
static Vector * vectorWithSize(size_t size)
static void insert(Vector *self, const ident element, size_t index)
static Vector * mappedVector(const Vector *self, Functor functor, ident data)
static Object * copy(const Object *self)
static void sort(Vector *self, Comparator comparator)
static int hash(const Object *self)
ident interface
The interface of the Class.
void dealloc(Object *self)
Frees all resources held by this Object.
ident reduce(const Vector *self, Reducer reducer, ident accumulator, ident data)
Vector * vectorWithSize(size_t size)
Creates a new Vector with the specified element size.
void insert(Vector *self, const ident element, size_t index)
Inserts the element at the specified index.
Vector * initWithSize(Vector *self, size_t size)
Initializes this Vector with the specified element size.