|
|
| version 1.57.2.1, 2003/01/22 15:39:07 | version 1.58, 2003/04/11 15:00:05 |
|---|---|
| Line 32 class Array_iter; | Line 32 class Array_iter; |
| @endverbatim | @endverbatim |
| */ | */ |
| class Array: public PA_Object { | class Array : public Pooled { |
| friend class Array_iter; | friend class Array_iter; |
| public: | public: |
| Line 63 public: | Line 63 public: |
| public: | public: |
| Array(int initial_rows=CR_INITIAL_ROWS_DEFAULT); | Array(Pool& apool, int initial_rows=CR_INITIAL_ROWS_DEFAULT); |
| /// size Array. how many items are in it | /// size Array. how many items are in it |
| int size() const { return fused_rows; } | int size() const { return fused_rows; } |
| Line 76 public: | Line 76 public: |
| Array& operator += (const Item *src) { return *this+=const_cast<Item *>(src); } | Array& operator += (const Item *src) { return *this+=const_cast<Item *>(src); } |
| /// append other Array portion to this one. starting from offset | /// append other Array portion to this one. starting from offset |
| Array& append_array(const Array& src, int offset=0, int limit=0); | Array& append_array(const Array& src, |
| int offset=0, | |
| int limit=-1, //< negative limit means 'all'. zero limit means 'nothing' | |
| bool reverse=false); | |
| Item *get(int index) const; | Item *get(int index) const; |
| int get_int(int index) const { return reinterpret_cast<int>(get(index)); } | int get_int(int index) const { return reinterpret_cast<int>(get(index)); } |