OODuck  0.5
C Oriented Object framework with duck-typing support
Object Class Reference

Base class for everything. More...

Inheritance diagram for Object:
Class Iterable IterableNode Iterator String Value VTableEntry Singleton Collection Hashmap List CollectionNode ListNode

Public Member Functions

void * ref (void *self)
 Increment object's reference counter. More...
 
void unref (void *self)
 Decrement object's reference counter, if equals 0, delete the object. More...
 
bool equal (const void *self, const void *other)
 Check objects equality. More...
 

Detailed Description

Base class for everything.

Member Function Documentation

bool equal ( const void *  self,
const void *  other 
)

Check objects equality.

Parameters
selfObject instance.
otherObject instance.
Returns
TRUE if objects are equal, FALSE otherwise.
void * ref ( void *  self)

Increment object's reference counter.

Parameters
selfObject instance.
Returns
Same Object instance.
void unref ( void *  self)

Decrement object's reference counter, if equals 0, delete the object.

Parameters
selfObject instance.