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

version 1.2, 2001/01/27 15:21:05 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_index;          int cache_chunk_base;
         Chunk::Row *cache_row;          Chunk *cache_chunk;
         int cache_countdown;  
         Chunk::Row *cache_link_row;  
                   
 private:  private:
         // new&constructors made private to enforce factory manufacturing at pool          // new&constructors made private to enforce factory manufacturing at pool
Line 85  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);
   
 public:  
   
         int size() { return fused_rows; }  
         Array& operator += (Item src);  
   
         /*  
         void put(int index, Item item);  
         Item get(int index);  
         */  
         Item& operator [] (int index);  
   
 private: //disabled  private: //disabled
   

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


E-mail: