Differences From Artifact [8727a6856e]:
- File src/OFList.h — part of check-in [5d190947a7] at 2009-05-20 19:59:13 on branch trunk — Implement OFCopying protocol for OFList. (user: js, size: 2848) [annotate] [blame] [check-ins using]
To Artifact [fdd2b6ed1c]:
- File
src/OFList.h
— part of check-in
[24ecf55297]
at
2009-06-29 12:33:59
on branch trunk
— Changes to OFDictionary, OFIterator and OFList - see details.
OFDictionary:
* More optimized way to internally store the data.
* Faster resizing of dictionaries (no rehashing anymore).OFIterator:
* Return a key/object pair rather than first the key and then the
object.OFList:
* Support for list objects with a different size so you can have your
own list object structs. (user: js, size: 3309) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
9 10 11 12 13 14 15 | * the packaging of this file. */ #import "OFObject.h" typedef struct __of_list_object { | < > > > > > > > > > > > > > > > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | * the packaging of this file. */ #import "OFObject.h" typedef struct __of_list_object { struct __of_list_object *next; struct __of_list_object *prev; id object; } of_list_object_t; /** * 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; /** * \param listobj_size The size of a list object * \return A new autoreleased OFList with the specified list object size */ + listWithListObjectSize: (size_t)listobj_size; /** * Initializes an already allocated OFList with the specified list object size. * * \param listobj_size The size of a list object * \return An initialized OFList with the specified list object size */ - initWithListObjectSize: (size_t)listobj_size; /** * Initializes an already allocated OFList that does not retain/releas objects * added to it.. * * \return An initialized OFList */ - initWithoutRetainAndRelease; |
︙ | ︙ |