Doubly-linked lists of raw C pointers.
Definition at line 60 of file List.h.
|
| Class * | _List (void) |
| | The List archetype.
|
| |
| void | append (List *self, const ident element) |
| | Appends the given element to the tail of this List.
|
| |
| bool | contains (const List *self, const ident element) |
| |
| void | enumerate (const List *self, ListEnumerator enumerator, ident element) |
| | Enumerates this List with the given function.
|
| |
| void | filter (List *self, Predicate predicate, ident data) |
| | Filters this List in place using predicate.
|
| |
| List * | filteredList (const List *self, Predicate predicate, ident data) |
| | Returns a new List containing elements of this List that pass predicate.
|
| |
| ident | find (const List *self, Predicate predicate, ident data) |
| |
| List * | init (List *self) |
| | Initializes this List.
|
| |
| void | insertAfter (List *self, ListNode *node, const ident element) |
| | Inserts an element after the given node.
|
| |
| void | map (List *self, Functor functor, ident data) |
| | Transforms the elements in this List in place using functor.
|
| |
| List * | mappedList (const List *self, Functor functor, ident data) |
| | Returns a new List containing the elements of this List transformed by functor.
|
| |
| ListNode * | nodeForElement (const List *self, const ident element) |
| |
| void | prepend (List *self, const ident element) |
| | Prepends the given element to the head of this List.
|
| |
| ident | reduce (const List *self, Reducer reducer, ident accumulator, ident data) |
| |
| void | remove (List *self, const ident element) |
| | Removes the first occurrence of element from this List.
|
| |
| void | removeAll (List *self) |
| | Removes all elements from this List.
|
| |
| void | removeNode (List *self, ListNode *node) |
| | Removes the given node from this List.
|
| |
| void | sort (List *self, Comparator comparator) |
| | Sorts this List in-place using the given comparator.
|
| |
| void | sort (List *self, ListSortFunc sort) |
| |
| 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.
|
| |