Object used to iterate over Iterable.
More...
|
void * | __constructor__ (void *self, const void *iterable) |
| Build new iterator from iterable. More...
|
|
void * | next (void *self) |
| Get next item in Iterable object. More...
|
|
void * | get (const void *self) |
| Get current item. More...
|
|
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...
|
|
Object used to iterate over Iterable.
void * __constructor__ |
( |
void * |
self, |
|
|
const void * |
iterable |
|
) |
| |
Build new iterator from iterable.
- Parameters
-
- Returns
- Initialized instance.
void * get |
( |
const void * |
self | ) |
|
Get current item.
- Parameters
-
- Returns
- Current item or
NULL
if Iterator::next()
hasn't been called (or no more items).
void * next |
( |
void * |
self | ) |
|