Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <IndexSet.h>
Immutable collections of unique index values.
Definition at line 41 of file IndexSet.h.
Properties | |
size_t | count |
The count of indexes . More... | |
size_t * | indexes |
The indexes. More... | |
Object | object |
The superclass. More... | |
![]() | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
Class * | _IndexSet (void) |
The IndexSet archetype. More... | |
_Bool | containsIndex (const IndexSet *self, size_t index) |
IndexSet * | initWithIndex (IndexSet *self, size_t index) |
Initializes this IndexSet with the specified index. More... | |
IndexSet * | initWithIndexes (IndexSet *self, size_t *indexes, size_t count) |
Initializes this IndexSet with the specified indexes and count. More... | |
![]() | |
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 | |
IndexSetInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
size_t IndexSet::count |
The count of indexes
.
Definition at line 62 of file IndexSet.h.
size_t* IndexSet::indexes |
The indexes.
Definition at line 57 of file IndexSet.h.
|
protected |
The interface.
Definition at line 52 of file IndexSet.h.
Object IndexSet::object |
The superclass.
Definition at line 46 of file IndexSet.h.
Class * _IndexSet | ( | void | ) |
The IndexSet archetype.
Definition at line 218 of file IndexSet.c.
_Bool containsIndex | ( | const IndexSet * | self, |
size_t | index | ||
) |
self | The IndexSet. |
index | The index. |
index
, false otherwise. Definition at line 155 of file IndexSet.c.
Initializes this IndexSet with the specified index.
self | The IndexSet. |
index | The index. |
NULL
on error. Definition at line 170 of file IndexSet.c.
Initializes this IndexSet with the specified indexes and count.
self | The IndexSet. |
indexes | The indexes. |
count | The count of indexes . |
NULL
on error. Definition at line 178 of file IndexSet.c.