ObjFW
|
A class which provides easy to use double-linked lists. More...
#include <OFList.h>
Public Member Functions | |
of_list_object_t * | firstListObject () |
of_list_object_t * | lastListObject () |
of_list_object_t * | appendObject: (id obj) |
of_list_object_t * | prependObject: (id obj) |
of_list_object_t * | insertObject:beforeListObject: (id obj,[beforeListObject] of_list_object_t *listobj) |
of_list_object_t * | insertObject:afterListObject: (id obj,[afterListObject] of_list_object_t *listobj) |
void | removeListObject: (of_list_object_t *listobj) |
Static Public Member Functions | |
id | list () |
Protected Attributes | |
size_t | count |
unsigned long | mutations |
Properties | |
of_list_object_t * | firstListObject |
of_list_object_t * | lastListObject |
A class which provides easy to use double-linked lists.
of_list_object_t * OFList::appendObject: | ( | id | obj | ) | [virtual] |
Appends an object to the list.
obj | The object to append |
of_list_object_t* OFList::firstListObject | ( | ) | [virtual] |
of_list_object_t * OFList::insertObject:afterListObject: | ( | id | obj, |
[afterListObject] of_list_object_t* | listobj | ||
) | [virtual] |
Inserts an object after another object.
obj | The object to insert |
listobj | The of_list_object_t of the object after which it should be inserted |
of_list_object_t * OFList::insertObject:beforeListObject: | ( | id | obj, |
[beforeListObject] of_list_object_t* | listobj | ||
) | [virtual] |
Inserts an object before another object.
obj | The object to insert |
listobj | The of_list_object_t of the object before which it should be inserted |
of_list_object_t* OFList::lastListObject | ( | ) | [virtual] |
id OFList::list | ( | ) | [static, virtual] |
of_list_object_t * OFList::prependObject: | ( | id | obj | ) | [virtual] |
Prepends an object to the list.
obj | The object to prepend |
void OFList::removeListObject: | ( | of_list_object_t* | listobj | ) | [virtual] |
Removes the object with the specified list object from the list.
listobj | The list object returned by append / prepend |