Diff for /parser3/src/include/pa_array.h between versions 1.1 and 1.6

version 1.1, 2001/01/27 15:00:04 version 1.6, 2001/01/29 12:00:45
Line 33  public: Line 33  public:
                 CR_GROW_PERCENT=60                  CR_GROW_PERCENT=60
         };          };
   
   public:
   
           int size() { return fused_rows; }
           Array& operator += (Item src);
           Item& operator [] (int index);
           Array& operator += (Array& src);
   
 private:  private:
         friend Pool;          friend Pool;
   
Line 50  private: Line 57  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 69  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 91  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  private: //disabled
   
         Array& operator = (Array& src) { return *this; }          Array& operator = (Array& src) { return *this; }
         Array(Array& src) {}          Array(Array& src) {}
   
 public:  
   
         int size() { return fused_rows; }  
         Array& operator += (Item src);  
 };  };
   
 #endif  #endif

Removed from v.1.1  
changed lines
  Added in v.1.6


E-mail: