ObjFW  Diff

Differences From Artifact [4d01ae293c]:

To Artifact [80e9c4dbfe]:

  • File src/OFSortedList.h — part of check-in [7a8a5a2995] at 2012-11-24 00:07:49 on branch trunk — -[OFSortedList addObject:] -> -[insertObject:].

    The rationale behind this is that otherwise, there are two methods
    called addObject: with a different signature, the one from
    OFMutableArray and the one from OFSortedList. As OFSortedList is
    actually using insertion sort and all other methods on an OFList start
    with insert anyway, this is also more consistent. (user: js, size: 1079) [annotate] [blame] [check-ins using]


20
21
22
23
24
25
26
27
28
29
30
31
32
33
 * @brief A class which provides easy to use sorted double-linked lists.
 *
 * @warning Because the list is sorted, all methods inserting an object at a
 *	    specific place are unavailable, even though they exist in OFList!
 */
@interface OFSortedList: OFList
/*!
 * @brief Adds the object to the list while keeping the list sorted.
 *
 * @param object The object to add
 * @return The list object for the object just added
 */
- (of_list_object_t*)addObject: (id <OFComparing>)object;
@end







|

|


|

20
21
22
23
24
25
26
27
28
29
30
31
32
33
 * @brief A class which provides easy to use sorted double-linked lists.
 *
 * @warning Because the list is sorted, all methods inserting an object at a
 *	    specific place are unavailable, even though they exist in OFList!
 */
@interface OFSortedList: OFList
/*!
 * @brief Inserts the object to the list while keeping the list sorted.
 *
 * @param object The object to insert
 * @return The list object for the object just added
 */
- (of_list_object_t*)insertObject: (id <OFComparing>)object;
@end