Revision 889 trunk/src/tools99/adstring.hpp

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);

Also available in: Unified diff