Changeset 3098 in Sophya for trunk/SophyaLib/NTools/integ.h


Ignore:
Timestamp:
Nov 2, 2006, 3:32:37 PM (19 years ago)
Author:
ansari
Message:

correction bug lie au delete de ClassFunc ds Integrator / petite amelioration interface Integrator - Reza 02/11/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/integ.h

    r2423 r3098  
    1818class Integrator {
    1919public:
    20   //typedef double(*FUNC)(double);
    21   typedef ClassFunc *FUNC;
    22   typedef double (*fun)(double);
     20  typedef double(*FUNC)(double);
    2321
    2422  Integrator();
     23  Integrator(ClassFunc const &, double xmin, double xmax);
     24  Integrator(ClassFunc const &);
     25
    2526  Integrator(FUNC, double xmin, double xmax);
    2627  Integrator(FUNC);
    27 
    28   Integrator(fun, double xmin, double xmax);
    29   Integrator(fun);
    3028
    3129  Integrator(GeneralFunction*, double* par, double xmin, double xmax);
     
    4139  virtual Integrator& ReqPrec(double);   // NOT YET !
    4240  virtual Integrator& Limits(double xmin, double xmax);
    43   virtual Integrator& Func(FUNC);
    44   virtual Integrator& Func(GeneralFunction*, double* par);
     41  virtual Integrator& SetFunc(ClassFunc const &);
     42  virtual Integrator& SetFunc(FUNC);
     43  virtual Integrator& SetFunc(GeneralFunction*, double* par);
    4544
    4645  virtual inline  int GetNStep(void) {return mNStep;}
     
    4948protected:
    5049  FUNC             mFunc;
     50  ClassFunc const* mClFun;
    5151  GeneralFunction* mGFF;
    5252  double*          mGFFParm;
     
    6868public:
    6969  TrpzInteg();
     70  TrpzInteg(ClassFunc const &, double xmin, double xmax);
     71  TrpzInteg(ClassFunc const &);
    7072  TrpzInteg(FUNC, double xmin, double xmax);
    7173  TrpzInteg(FUNC);
    72   TrpzInteg(fun, double xmin, double xmax);
    73   TrpzInteg(fun);
    7474  TrpzInteg(GeneralFunction*, double* par, double xmin, double xmax);
    7575  TrpzInteg(GeneralFunction*, double* par);
     
    8383public:
    8484  GLInteg();
     85  GLInteg(ClassFunc const &, double xmin, double xmax);
     86  GLInteg(ClassFunc const &);
    8587  GLInteg(FUNC, double xmin, double xmax);
    8688  GLInteg(FUNC);
    87   GLInteg(fun, double xmin, double xmax);
    88   GLInteg(fun);
    8989  GLInteg(GeneralFunction*, double* par, double xmin, double xmax);
    9090  GLInteg(GeneralFunction*, double* par);
Note: See TracChangeset for help on using the changeset viewer.