|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Set.h>
Properties | |
| size_t | count |
| The count of elements. More... | |
| Object | object |
| The superclass. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _Set (void) |
| The Set archetype. More... | |
| Array * | allObjects (const Set *self) |
| _Bool | containsObject (const Set *self, const ident obj) |
| _Bool | containsObjectMatching (const Set *self, Predicate predicate, ident data) |
| void | enumerateObjects (const Set *self, SetEnumerator enumerator, ident data) |
| Enumerate the elements of this Set with the given function. More... | |
| Set * | filteredSet (const Set *self, Predicate predicate, ident data) |
Creates a new Set with elements that pass predicate. More... | |
| Set * | initWithArray (Set *self, const Array *array) |
Initializes this Set to contain the Objects in array. More... | |
| Set * | initWithObjects (Set *self,...) |
| Initializes this Set with the specified objects. More... | |
| Set * | initWithSet (Set *self, const Set *set) |
Initializes this Set to contain the Objects in set. More... | |
| Set * | mappedSet (const Set *self, Functor functor, ident data) |
Transforms the elements in this Set by functor. More... | |
| MutableSet * | mutableCopy (const Set *self) |
| ident | reduce (const Set *self, Reducer reducer, ident accumulator, ident data) |
| Set * | setWithArray (const Array *array) |
Returns a new Set with the contents of array. More... | |
| Set * | setWithObjects (ident obj,...) |
| Returns a new Set containing the specified Objects. More... | |
| Set * | setWithSet (const Set *set) |
Returns a new Set with the contents of set. More... | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. More... | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. More... | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. More... | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. More... | |
| _Bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. More... | |
| _Bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. More... | |
Protected Attributes | |
| SetInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| Class * _Set | ( | void | ) |
The Set archetype.
Definition at line 454 of file Set.c.
| self | The Set. |
Definition at line 142 of file Set.c.
| void enumerateObjects | ( | const Set * | self, |
| SetEnumerator | enumerator, | ||
| ident | data | ||
| ) |
Creates a new Set with elements that pass predicate.
| self | The Set. |
| predicate | The predicate function. |
| data | User data. |
Definition at line 217 of file Set.c.
Initializes this Set to contain the Objects in array.
NULL on error. Definition at line 252 of file Set.c.
Initializes this Set with the specified objects.
| self | The Set. |
NULL on error. Definition at line 268 of file Set.c.
Initializes this Set to contain the Objects in set.
NULL on error. Definition at line 303 of file Set.c.
Transforms the elements in this Set by functor.
| self | The Set. |
| functor | The Functor. |
| data | User data. |
Definition at line 319 of file Set.c.
| MutableSet * mutableCopy | ( | const Set * | self | ) |
| self | The Set. |
Definition at line 349 of file Set.c.
| self | The Set. |
| reducer | The Reducer. |
| accumulator | The initial accumulator value. |
| data | User data. |
Definition at line 362 of file Set.c.