29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
* The OFList class provides easy to use double-linked lists.
*/
@interface OFList: OFObject <OFCopying>
{
of_list_object_t *first;
of_list_object_t *last;
size_t listobj_size;
BOOL retain_and_release;
}
/**
* \return A new autoreleased OFList
*/
+ list;
|
>
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
* The OFList class provides easy to use double-linked lists.
*/
@interface OFList: OFObject <OFCopying>
{
of_list_object_t *first;
of_list_object_t *last;
size_t listobj_size;
size_t count;
BOOL retain_and_release;
}
/**
* \return A new autoreleased OFList
*/
+ list;
|
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
* Removes the object with the specified list object from the list.
*
* \param listobj The list object returned by append / prepend
*/
- remove: (of_list_object_t*)listobj;
/**
* Get the number of items in the list. Use with caution, as this means one
* iteration through the whole list!
*
* \return The number of items in the list.
*/
- (size_t)count;
@end
|
<
<
<
|
121
122
123
124
125
126
127
128
129
130
131
|
* Removes the object with the specified list object from the list.
*
* \param listobj The list object returned by append / prepend
*/
- remove: (of_list_object_t*)listobj;
/**
* \return The number of items in the list.
*/
- (size_t)count;
@end
|