Public Member Functions | Static Public Member Functions | Protected Attributes | Properties

OFList Class Reference

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

#import <OFList.h>

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

List of all members.

Public Member Functions

(of_list_object_t *) - firstListObject
(of_list_object_t *) - lastListObject
(of_list_object_t *) - appendObject:
(of_list_object_t *) - prependObject:
(of_list_object_t *) - insertObject:beforeListObject:
(of_list_object_t *) - insertObject:afterListObject:
(void) - removeListObject:

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 *) appendObject: (id)  obj  

Appends an object to the list.

Parameters:
obj The 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*) firstListObject  
Returns:
The first list object in the list
- (of_list_object_t *) insertObject: (id)  obj
afterListObject: (of_list_object_t*)  listobj 

Inserts an object after another object.

Parameters:
obj The object to insert
listobj The 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 *) insertObject: (id)  obj
beforeListObject: (of_list_object_t*)  listobj 

Inserts an object before another object.

Parameters:
obj The object to insert
listobj The 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*) lastListObject  
Returns:
The last list object in the list
+ (id) list  
Returns:
A new autoreleased OFList
- (of_list_object_t *) prependObject: (id)  obj  

Prepends an object to the list.

Parameters:
obj The 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) removeListObject: (of_list_object_t*)  listobj  

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

Parameters:
listobj The list object returned by append / prepend

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