|
Objectively
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. | |
| unsigned int | magic |
| A header to allow introspection of Object types. | |
Methods | |
| Class * | _Object (void) |
| The Object archetype. | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. | |
| bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. | |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. | |
Protected Attributes | |
| ObjectInterface * | interface |
| The interface. | |
| Class* Object::clazz |
| unsigned int Object::magic |
| Class * _Object | ( | void | ) |
The Object archetype.
Definition at line 136 of file Object.c.
Creates a shallow copy of this Object.
| self | The Object. |
Definition at line 84 of file Array.c.
| void dealloc | ( | Object * | self | ) |
Frees all resources held by this Object.
| self | The Object. |
Definition at line 99 of file Array.c.
| self | The Object. |
Definition at line 115 of file Array.c.
| int hash | ( | const Object * | self | ) |
| self | The Object. |
Definition at line 129 of file Array.c.
Tests equality of the other Object.
Definition at line 145 of file Array.c.
Tests for Class hierarchy membership.
Definition at line 101 of file Object.c.