Revision 889

trunk/src/tools99/string5.cpp (revision 889)
44 44
    ptr=NULL;
45 45
  }
46 46

  
47
int adstring_array::size() const { return shape->indexmax()-shape->indexmin() + 1; }
48
int adstring_array::indexmin(void) const { return shape->indexmin();}
49
int adstring_array::indexmax(void) const { return shape->indexmax();}
50

  
47 51
  adstring_array::adstring_array(int min,int max) 
48 52
  {
49 53
    allocate(min,max); 
trunk/src/tools99/adstring.hpp (revision 889)
228 228
#  endif
229 229
#endif
230 230

  
231
#ifndef _VECTOR_SHAPE
232
  #define _VECTOR_SHAPE
233
  class vector_shape
234
  {
235
    unsigned int ncopies;
236
    int index_min;
237
    int index_max;
238
    void shift(int min);
239
    friend class dvector;
240
    friend class dvar_vector;
241
    friend class ivector;
242
    friend class lvector;
243
    friend class ptr_vector;
244
  public:
245
    vector_shape(int& lb, int& lu) {index_min=lb;index_max=lu;ncopies=0;}
246
    int indexmin(void) const {return index_min;}
247
    int indexmax(void) const {return index_max;}
248
  };
249
#endif
231
class vector_shape;
250 232

  
251

  
252 233
class adstring_array : public clist
253 234
{
254 235
  vector_shape * shape;
255 236
  adstring ** ptr;
256 237
public:
257
  int size() const { return shape->indexmax()-shape->indexmin() + 1; }
258
  int indexmin(void) const { return shape->indexmin();}
259
  int indexmax(void) const { return shape->indexmax();}
238
  int size() const;
239
  int indexmin(void) const;
240
  int indexmax(void) const;
260 241
  adstring_array(const adstring_array& sa);
261 242
  ~adstring_array();
262 243
  adstring_array(int min,int max);
trunk/src/linad99/fvar.hpp (revision 889)
691 691
      index_max = lu;
692 692
      ncopies = 0;
693 693
   }
694
   int indexmin()
694
   int indexmin() const
695 695
   {
696 696
      return index_min;
697 697
   }
698
   int indexmax()
698
   int indexmax() const
699 699
   {
700 700
      return index_max;
701 701
   }

Also available in: Unified diff