47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
+
+
+
+
-
+
+
+
-
+
-
+
-
+
-
+
+
-
+
+
-
+
|
#ifdef OF_HAVE_PROPERTIES
@property (readonly) of_list_object_t *firstListObject;
@property (readonly) of_list_object_t *lastListObject;
#endif
/**
* \brief Creates a new OFList.
*
* \return A new autoreleased OFList
*/
+ list;
/**
* \brief Returns the first list object of the list.
*
* \return The first list object in the list
* \return The first list object of the list
*/
- (of_list_object_t*)firstListObject;
/**
* \brief Retrusn the last list object of the list.
*
* \return The last list object in the list
* \return The last list object of the list
*/
- (of_list_object_t*)lastListObject;
/**
* Appends an object to the list.
* \brief Appends an object to the list.
*
* \param object The object to append
* \return 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*)appendObject: (id)object;
/**
* Prepends an object to the list.
* \brief Prepends an object to the list.
*
* \param object The object to prepend
* \return 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*)prependObject: (id)object;
/**
* Inserts an object before another object.
* \brief Inserts an object before another list object.
*
* \param object The object to insert
* \param listObject The of_list_object_t of the object before which it should be
* inserted
* \return 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)object
beforeListObject: (of_list_object_t*)listObject;
/**
* Inserts an object after another object.
* \brief Inserts an object after another list object.
*
* \param object The object to insert
* \param listObject The of_list_object_t of the object after which it should be
* inserted
* \return 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)object
afterListObject: (of_list_object_t*)listObject;
/**
* Removes the object with the specified list object from the list.
* \brief Removes the object with the specified list object from the list.
*
* \param listObject The list object returned by append / prepend
*/
- (void)removeListObject: (of_list_object_t*)listObject;
@end
@interface OFListEnumerator: OFEnumerator
|