00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef ARRAY_H
00010 #define ARRAY_H
00011
00012 #include <aconf.h>
00013
00014 #ifdef USE_GCC_PRAGMAS
00015 #pragma interface
00016 #endif
00017
00018 #include "Object.h"
00019
00020 class XRef;
00021
00022
00023
00024
00025
00026 class Array {
00027 public:
00028
00029
00030 Array(XRef *xrefA);
00031
00032
00033 ~Array();
00034
00035
00036 int incRef() { return ++ref; }
00037 int decRef() { return --ref; }
00038
00039
00040 int getLength() { return length; }
00041
00042
00043 void add(Object *elem);
00044
00045
00046 Object *get(int i, Object *obj);
00047 Object *getNF(int i, Object *obj);
00048
00049 private:
00050
00051 XRef *xref;
00052 Object *elems;
00053 int size;
00054 int length;
00055 int ref;
00056 };
00057
00058 #endif