Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <IndexPath.h>
Index paths represent the path to an element or node within a tree or graph structure.
Definition at line 40 of file IndexPath.h.
Properties | |
size_t * | indexes |
The indexes. More... | |
size_t | length |
The length of indexes . More... | |
Object | object |
The superclass. More... | |
![]() | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
Class * | _IndexPath (void) |
The IndexPath archetype. More... | |
size_t | indexAtPosition (const IndexPath *self, size_t position) |
IndexPath * | initWithIndex (IndexPath *self, size_t index) |
Initializes this IndexPath with the specified index. More... | |
IndexPath * | initWithIndexes (IndexPath *self, size_t *indexes, size_t length) |
Initializes this IndexPath with the specified indexes and length. 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 | |
IndexPathInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
size_t* IndexPath::indexes |
The indexes.
Definition at line 56 of file IndexPath.h.
|
protected |
The interface.
Definition at line 51 of file IndexPath.h.
size_t IndexPath::length |
The length of indexes
.
Definition at line 61 of file IndexPath.h.
Object IndexPath::object |
The superclass.
Definition at line 45 of file IndexPath.h.
Class * _IndexPath | ( | void | ) |
The IndexPath archetype.
Definition at line 180 of file IndexPath.c.
size_t indexAtPosition | ( | const IndexPath * | self, |
size_t | position | ||
) |
self | The IndexPath. |
position | The index position. |
Definition at line 122 of file IndexPath.c.
Initializes this IndexPath with the specified index.
self | The IndexPath. |
index | The index. |
NULL
on error. Definition at line 133 of file IndexPath.c.
Initializes this IndexPath with the specified indexes and length.
self | The IndexPath. |
indexes | The indexes. |
length | The length of indexes . |
NULL
on error. Definition at line 141 of file IndexPath.c.