ObjFW
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties
OFList Class Reference

A class which provides easy to use double-linked lists. More...

#include <OFList.h>

Inheritance diagram for OFList:
OFObject <OFCopying> <OFCollection> <OFFastEnumeration> <OFObject> <OFObject>

List of all members.

Public Member Functions

of_list_object_tfirstListObject ()
of_list_object_tlastListObject ()
of_list_object_tappendObject: (id obj)
of_list_object_tprependObject: (id obj)
of_list_object_tinsertObject:beforeListObject: (id obj,[beforeListObject] of_list_object_t *listobj)
of_list_object_tinsertObject: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_tfirstListObject
of_list_object_tlastListObject

Detailed Description

A class which provides easy to use double-linked lists.


Member Function Documentation

of_list_object_t * OFList::appendObject: ( id  obj) [virtual]

Appends an object to the list.

Parameters:
objThe object to append
Returns:
An of_list_object_t, needed to identify the object inside the list. For example, if you want to remove an object from the list, you need its of_list_object_t.
of_list_object_t* OFList::firstListObject ( ) [virtual]
Returns:
The first list object in the list
of_list_object_t * OFList::insertObject:afterListObject: ( id  obj,
[afterListObject] of_list_object_t listobj 
) [virtual]

Inserts an object after another object.

Parameters:
objThe object to insert
listobjThe of_list_object_t of the object after which it should be inserted
Returns:
An of_list_object_t, needed to identify the object inside the list. For example, if you want to remove an object from the list, you need its of_list_object_t.
of_list_object_t * OFList::insertObject:beforeListObject: ( id  obj,
[beforeListObject] of_list_object_t listobj 
) [virtual]

Inserts an object before another object.

Parameters:
objThe object to insert
listobjThe of_list_object_t of the object before which it should be inserted
Returns:
An of_list_object_t, needed to identify the object inside the list. For example, if you want to remove an object from the list, you need its of_list_object_t.
of_list_object_t* OFList::lastListObject ( ) [virtual]
Returns:
The last list object in the list
id OFList::list ( ) [static, virtual]
Returns:
A new autoreleased OFList
of_list_object_t * OFList::prependObject: ( id  obj) [virtual]

Prepends an object to the list.

Parameters:
objThe object to prepend
Returns:
An of_list_object_t, needed to identify the object inside the list. For example, if you want to remove an object from the list, you need its of_list_object_t.
void OFList::removeListObject: ( of_list_object_t listobj) [virtual]

Removes the object with the specified list object from the list.

Parameters:
listobjThe list object returned by append / prepend

The documentation for this class was generated from the following files:
 All Classes Functions Variables