Vectors.
Definition at line 51 of file Vector.h.
|
| Class * | _Vector (void) |
| | The Vector archetype.
|
| |
| void | add (Vector *self, const ident element) |
| | Adds the specified element to this Vector.
|
| |
| void | enumerate (const Vector *self, VectorEnumerator enumerator, ident data) |
| | Enumerates the elements of this Vector with the given function.
|
| |
| void | filter (const Vector *self, Predicate predicate, ident data) |
| | Filters the elements of this Vector with the given Predicate.
|
| |
| void | filter (Vector *self, Predicate predicate, ident data) |
| |
| ident | find (const Vector *self, Predicate predicate, ident data) |
| |
| ssize_t | indexOf (const Vector *self, const ident element) |
| |
| Vector * | initWithElements (Vector *self, size_t size, size_t count, ident elements) |
| | Initializes this Vector with the specified elements.
|
| |
| Vector * | initWithSize (Vector *self, size_t size) |
| | Initializes this Vector with the specified element size.
|
| |
| void | insert (Vector *self, const ident element, size_t index) |
| | Inserts the element at the specified index.
|
| |
| Vector * | mappedVector (const Vector *self, Functor functor, ident data) |
| | Returns a new Vector containing the elements of this Vector transformed by functor.
|
| |
| ident | reduce (const Vector *self, Reducer reducer, ident accumulator, ident data) |
| |
| void | removeAll (Vector *self) |
| | Removes all elements from this Vector without modifying its capacity.
|
| |
| void | removeAt (Vector *self, size_t index) |
| | Removes the element at the specified index.
|
| |
| void | resize (Vector *self, size_t capacity) |
| | Resizes this Vector to the specified capacity.
|
| |
| void | sort (Vector *self, Comparator comparator) |
| | Sorts this Vector in place using comparator.
|
| |
| Vector * | vectorWithElements (size_t size, size_t count, ident elements) |
| | Creates a new Vector with the specified elements.
|
| |
| Vector * | vectorWithSize (size_t size) |
| | Creates a new Vector with the specified element size.
|
| |
| Class * | _Object (void) |
| | The Object archetype.
|
| |
| Object * | copy (const Object *self) |
| | Creates a shallow copy of this Object.
|
| |
| void | dealloc (Object *self) |
| | Frees all resources held by this Object.
|
| |
| String * | description (const Object *self) |
| |
| int | hash (const Object *self) |
| |
| Object * | init (Object *self) |
| | Initializes this Object.
|
| |
| bool | isEqual (const Object *self, const Object *other) |
| | Tests equality of the other Object.
|
| |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| | Tests for Class hierarchy membership.
|
| |