Actual source code: tvecdouble.h

      1: #ifndef SIMPLEVECTOR_H
      2: #define SIMPLEVECTOR_H

      4: // #include "tao_basictypes.h"
     5:  #include taovec.h

      7: class TaoVecDoubleArray: public TaoVec{

      9:  protected:

     11:   int n;
     12:   double *v;
     13:   int dallocated;
     14:  public:
     15:
     16:   inline int GetData(double**dd,int*nn){*dd=v;*nn=n; return 0;}

     18:   TaoVecDoubleArray( int nn );
     19:   TaoVecDoubleArray( int nn , double *vv);
     20:   ~TaoVecDoubleArray(){if (n>0 && dallocated) delete [] v;};

     23:   int Compatible (TaoVec *v, TaoTruth*);
     24:   int GetArray(TaoScalar **, int*);
     25:   int RestoreArray(TaoScalar **, int*);
     26:   int Clone(TaoVec**);
     27:   int GetDimension(int *);

     29:   int View();

     31:   int GetDoubles(double **, int*);
     32:   int RestoreDoubles(double **, int*);

     34: };

     36: #endif