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

Abstract class to encapsulate item objects. More...

Inheritance diagram for IterableNode:
Object CollectionNode ListNode

Public Member Functions

void * __constructor__ (void *self, const void *data)
 Build new node. More...
 
void * data (const void *self)
 Get a new reference on encapsulated data. More...
 
- Public Member Functions inherited from Object
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

Abstract class to encapsulate item objects.

MUST be subclassed.

Member Function Documentation

void * __constructor__ ( void *  self,
const void *  data 
)

Build new node.

Parameters
selfIterableNode instance.
dataData to encapsulate.
Returns
Initialized instance.
void * data ( const void *  self)

Get a new reference on encapsulated data.

Parameters
selfIterableNode instance.
Returns
New reference on encapsulated data.