5 #ifndef __RAYM_ARRAY_H__
\r
6 #define __RAYM_ARRAY_H__
\r
10 #include <Raym/Object.h>
\r
15 class Array : public Object
\r
21 std::vector<Object *> _array;
\r
25 static Array *arrayWithCapacity(UInteger numItems);
\r
26 static Array *alloc();
\r
27 Array *initWithCapacity(UInteger numItems);
\r
29 Array *autorelease();
\r
32 void addObject(Object *object);
\r
33 void addObjectsFromArray(Array *array);
\r
34 Object *objectAtIndex(UInteger index);
\r
36 void insertObject(Object *object, UInteger index);
\r
38 void removeObject(Object *object);
\r
39 void removeObjectAtIndex(UInteger index);
\r
41 void removeAllObjects();
\r
43 Array *sortedArrayUsingFunction(Integer (*function)(Object *, Object *, void *), void *context);
\r
45 virtual const char *className();
\r
50 #endif // __RAYM_ARRAY_H__
\r