00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <stdarg.h>
00013
00014 #import "OFObject.h"
00015 #import "OFDataArray.h"
00016
00017 @class OFString;
00018
00022 @interface OFArray: OFObject <OFCopying, OFMutableCopying>
00023 {
00024 OFDataArray *array;
00025 }
00026
00030 + array;
00031
00038 + arrayWithObject: (OFObject*)obj;
00039
00046 + arrayWithObjects: (OFObject*)first, ...;
00047
00054 + arrayWithCArray: (OFObject**)objs;
00055
00062 - initWithObject: (OFObject*)obj;
00063
00070 - initWithObjects: (OFObject*)first, ...;
00071
00079 - initWithObject: (OFObject*)first
00080 argList: (va_list)args;
00081
00088 - initWithCArray: (OFObject**)objs;
00089
00093 - (size_t)count;
00094
00098 - (id*)cArray;
00099
00106 - (id)objectAtIndex: (size_t)index;
00107
00115 - (size_t)indexOfObject: (OFObject*)obj;
00116
00125 - (size_t)indexOfObjectIdenticalTo: (OFObject*)obj;
00126
00130 - (id)firstObject;
00131
00135 - (id)lastObject;
00136
00143 - (OFString*)componentsJoinedByString: (OFString*)separator;
00144
00145 - addObject: (OFObject*)obj;
00146 - addObject: (OFObject*)obj
00147 atIndex: (size_t)index;
00148 - replaceObject: (OFObject*)old
00149 withObject: (OFObject*)new;
00150 - replaceObjectAtIndex: (size_t)index
00151 withObject: (OFObject*)obj;
00152 - replaceObjectIdenticalTo: (OFObject*)old
00153 withObject: (OFObject*)new;
00154 - removeObject: (OFObject*)obj;
00155 - removeObjectIdenticalTo: (OFObject*)obj;
00156 - removeObjectAtIndex: (size_t)index;
00157 - removeNObjects: (size_t)nobjects;
00158 - removeNObjects: (size_t)nobjects
00159 atIndex: (size_t)index;
00160 @end
00161
00162 #import "OFMutableArray.h"
00163 #import "OFString.h"