Changeset 3409 in Sophya for trunk/SophyaLib/NTools/genericfunc.h


Ignore:
Timestamp:
Nov 25, 2007, 7:13:51 PM (18 years ago)
Author:
cmv
Message:

operator(double) de ClassFunc et GenericFunc n'est plus const , cmv 25/11/2007

File:
1 edited

Legend:

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

    r3406 r3409  
    99
    1010//! Abstract interface definition for functions viewed as classes
    11 class GenericFunc : public ClassFunc {
     11  class GenericFunc : public ClassFunc {
    1212public:
    1313  GenericFunc(void) { }
    1414  virtual ~GenericFunc(void) { }
    1515
    16   virtual double operator()(double x) const {
     16  virtual double operator()(double x) {
    1717    cout<<"GenericFunc::operator(double) not implemented"<<endl;
    1818    throw NotAvailableOperation("GenericFunc::operator(double) not implemented");
    1919  }
    2020
    21   virtual double operator()(double x,double y) const {
     21  virtual double operator()(double x,double y) {
    2222    cout<<"GenericFunc::operator(double,double) not implemented"<<endl;
    2323    throw NotAvailableOperation("GenericFunc::operator(double,double) not implemented");
    2424  }
    2525
    26   virtual double operator()(double x,double y,double z) const {
     26  virtual double operator()(double x,double y,double z) {
    2727    cout<<"GenericFunc::operator(double,double,double) not implemented"<<endl;
    2828    throw NotAvailableOperation("GenericFunc::operator(double,double,double) not implemented");
    2929  }
    3030
    31   virtual double operator()(double* x) const {
     31  virtual double operator()(double* x) {
    3232    cout<<"GenericFunc::operator(double*) not implemented"<<endl;
    3333    throw NotAvailableOperation("GenericFunc::operator(double*) not implemented");
    3434  }
    3535
    36   virtual double operator()(vector<double>& x) const {
     36  virtual double operator()(vector<double>& x) {
    3737    cout<<"GenericFunc::operator(vector<double>&) not implemented"<<endl;
    3838    throw NotAvailableOperation("GenericFunc::operator(vector<double>&) not implemented");
Note: See TracChangeset for help on using the changeset viewer.