Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Object.h>
Object is the root Class of The Objectively Class hierarchy.
Every Class descends from Object, and every instance can be cast to Object.
Properties | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
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 | |
ObjectInterface * | interface |
The interface. More... | |
Class* Object::clazz |
Class * _Object | ( | void | ) |
The Object archetype.
Definition at line 136 of file Object.c.
void dealloc | ( | Object * | self | ) |
Frees all resources held by this Object.
self | The Object. |
Definition at line 50 of file Array.c.
self | The Object. |
Definition at line 66 of file Array.c.
int hash | ( | const Object * | self | ) |
self | The Object. |
Definition at line 80 of file Array.c.
Tests equality of the other Object.
Definition at line 96 of file Array.c.
Tests for Class hierarchy membership.
Definition at line 101 of file Object.c.