Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <MutableIndexSet.h>
Mutable collections of unique index values.
Definition at line 41 of file MutableIndexSet.h.
Properties | |
size_t | capacity |
The capacity. More... | |
IndexSet | indexSet |
The superclass. More... | |
![]() | |
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 * | _MutableIndexSet (void) |
The MutableIndexSet archetype. More... | |
void | addIndex (MutableIndexSet *self, size_t index) |
Adds the specified index to this MutableIndexSet. More... | |
void | addIndexes (MutableIndexSet *self, size_t *indexes, size_t count) |
Adds the specified indexes to this MutableIndexSet. More... | |
void | addIndexesInRange (MutableIndexSet *self, const Range range) |
Adds indexes in the specified Range to this MutableIndexSet. More... | |
MutableIndexSet * | init (MutableIndexSet *self) |
Initializes this MutableIndexSet. More... | |
MutableIndexSet * | initWithCapacity (MutableIndexSet *self, size_t capacity) |
Initializes this MutableIndexSet with the specified capacity. More... | |
void | removeAllIndexes (MutableIndexSet *self) |
Removes all indexes from this MutableIndexSet. More... | |
void | removeIndex (MutableIndexSet *self, size_t index) |
Removes the specified index from this MutableIndexSet. More... | |
void | removeIndexes (MutableIndexSet *self, size_t *indexes, size_t count) |
Removes the specified indexes from this MutableIndexSet. More... | |
void | removeIndexesInRange (MutableIndexSet *self, const Range range) |
Removes indexes in the specified Range from this MutableIndexSet. More... | |
![]() | |
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 | |
MutableIndexSetInterface * | interface |
The interface. More... | |
![]() | |
IndexSetInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
size_t MutableIndexSet::capacity |
The capacity.
Definition at line 57 of file MutableIndexSet.h.
IndexSet MutableIndexSet::indexSet |
The superclass.
Definition at line 46 of file MutableIndexSet.h.
|
protected |
The interface.
Definition at line 52 of file MutableIndexSet.h.
Class * _MutableIndexSet | ( | void | ) |
The MutableIndexSet archetype.
Definition at line 211 of file MutableIndexSet.c.
void addIndex | ( | MutableIndexSet * | self, |
size_t | index | ||
) |
Adds the specified index to this MutableIndexSet.
self | The MutableIndexSet. |
index | The index to add. |
Definition at line 51 of file MutableIndexSet.c.
void addIndexes | ( | MutableIndexSet * | self, |
size_t * | indexes, | ||
size_t | count | ||
) |
Adds the specified indexes to this MutableIndexSet.
self | The MutableIndexSet. |
indexes | The indexes to add. |
count | The count of indexes. |
Definition at line 84 of file MutableIndexSet.c.
void addIndexesInRange | ( | MutableIndexSet * | self, |
const Range | range | ||
) |
Adds indexes in the specified Range to this MutableIndexSet.
self | The MutableIndexSet. |
range | The Range of indexes to add. |
Definition at line 98 of file MutableIndexSet.c.
MutableIndexSet * init | ( | MutableIndexSet * | self | ) |
Initializes this MutableIndexSet.
self | The MutableIndexSet. |
NULL
on error. Definition at line 109 of file MutableIndexSet.c.
MutableIndexSet * initWithCapacity | ( | MutableIndexSet * | self, |
size_t | capacity | ||
) |
Initializes this MutableIndexSet with the specified capacity.
self | The MutableIndexSet. |
capacity | The capacity. |
NULL
on error. Definition at line 117 of file MutableIndexSet.c.
void removeAllIndexes | ( | MutableIndexSet * | self | ) |
Removes all indexes from this MutableIndexSet.
self | The MutableIndexSet. |
Definition at line 136 of file MutableIndexSet.c.
void removeIndex | ( | MutableIndexSet * | self, |
size_t | index | ||
) |
Removes the specified index from this MutableIndexSet.
self | The MutableIndexSet. |
index | The index to remove. |
Definition at line 151 of file MutableIndexSet.c.
void removeIndexes | ( | MutableIndexSet * | self, |
size_t * | indexes, | ||
size_t | count | ||
) |
Removes the specified indexes from this MutableIndexSet.
self | The MutableIndexSet. |
indexes | The indexes to remove. |
count | The count of indexes. |
Definition at line 169 of file MutableIndexSet.c.
void removeIndexesInRange | ( | MutableIndexSet * | self, |
const Range | range | ||
) |
Removes indexes in the specified Range from this MutableIndexSet.
self | The MutableIndexSet. |
range | The Range of indexes to remove. |
Definition at line 180 of file MutableIndexSet.c.