Diff for /parser3/src/include/pa_array.h between versions 1.50 and 1.57.2.1

version 1.50, 2002/02/07 11:16:27 version 1.57.2.1, 2003/01/22 15:39:07
Line 1 Line 1
 /** @file  /** @file
         Parser: Array & Array_iter classes decls.          Parser: Array & Array_iter classes decls.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
   
         $Id$  
 */  */
   
 #ifndef PA_ARRAY_H  #ifndef PA_ARRAY_H
 #define PA_ARRAY_H  #define PA_ARRAY_H
   
   static const char* IDENT_ARRAY_Y="$Date$";
   
 #include "pa_pool.h"  #include "pa_pool.h"
 #include "pa_types.h"  #include "pa_types.h"
 #include "pa_string.h"  #include "pa_string.h"
Line 32  class Array_iter; Line 32  class Array_iter;
         @endverbatim          @endverbatim
 */  */
   
 class Array : public Pooled {  class Array: public PA_Object {
         friend class Array_iter;          friend class Array_iter;
 public:  public:
   
Line 63  public: Line 63  public:
   
 public:  public:
   
         Array(Pool& apool, int initial_rows=CR_INITIAL_ROWS_DEFAULT);          Array(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);          Array& append_array(const Array& src, int offset=0, int limit=0);
   
         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)); }

Removed from v.1.50  
changed lines
  Added in v.1.57.2.1


E-mail: