|
|
| version 1.1, 2001/01/27 15:00:04 | version 1.5, 2001/01/29 10:15:14 |
|---|---|
| Line 50 private: | Line 50 private: |
| } | } |
| *head; // the head chunk of the chunk chain | *head; // the head chunk of the chunk chain |
| // last allocated chunk | |
| // helps appending Arrays | |
| Chunk *tail; | |
| // next append would write to this record | // next append would write to this record |
| Chunk::Row *append_here; | Chunk::Row *append_here; |
| Line 58 private: | Line 62 private: |
| Chunk::Row *link_row; | Chunk::Row *link_row; |
| private: | private: |
| // last chank allocated count | |
| int curr_chunk_rows; | |
| // array size | // array size |
| int fused_rows; | int fused_rows; |
| int cache_chunk_base; | |
| Chunk *cache_chunk; | |
| private: | private: |
| // new&constructors made private to enforce factory manufacturing at pool | // new&constructors made private to enforce factory manufacturing at pool |
| void *operator new(size_t size, Pool *apool); | void *operator new(size_t size, Pool *apool); |
| Line 80 private: | Line 84 private: |
| bool chunk_is_full() { | bool chunk_is_full() { |
| return append_here == link_row; | return append_here == link_row; |
| } | } |
| void expand(); | void expand(int chunk_rows); |
| private: //disabled | |
| Array& operator = (Array& src) { return *this; } | |
| Array(Array& src) {} | |
| public: | public: |
| int size() { return fused_rows; } | int size() { return fused_rows; } |
| Array& operator += (Item src); | Array& operator += (Item src); |
| Item& operator [] (int index); | |
| Array& operator += (Array& src); | |
| private: //disabled | |
| Array& operator = (Array& src) { return *this; } | |
| Array(Array& src) {} | |
| }; | }; |
| #endif | #endif |