Abstract class which allow to iterate over object.
More...
|
| bool | contains (const void *self, const void *object) |
| | Check if object is in the collection. More...
|
| |
| void | clear (void *self) |
| | Remove all items from iterable. More...
|
| |
| void * | next (const void *self, const void *iterator) |
| |
| 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...
|
| |
Abstract class which allow to iterate over object.
- Exceptions
-
| void clear |
( |
void * |
self | ) |
|
Remove all items from iterable.
- Parameters
-
MUST be implemented in a subclass.
| bool contains |
( |
const void * |
self, |
|
|
const void * |
object |
|
) |
| |
Check if object is in the collection.
- Parameters
-
| object | Object instance (will be unreferenced).void *self, const void *object) |
| self | Iterable object. |
| object | Object instance. |
- Returns
TRUE if object is in collection, FALSE otherwise.
MUST be implemented in a subclass.
| void * next |
( |
const void * |
self, |
|
|
const void * |
iterator |
|
) |
| |
- Parameters
-
- Returns
- Next item.
- Exceptions
-