Changeset 3409 in Sophya for trunk/SophyaLib/NTools/genericfunc.h
- Timestamp:
- Nov 25, 2007, 7:13:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/genericfunc.h
r3406 r3409 9 9 10 10 //! Abstract interface definition for functions viewed as classes 11 class GenericFunc : public ClassFunc {11 class GenericFunc : public ClassFunc { 12 12 public: 13 13 GenericFunc(void) { } 14 14 virtual ~GenericFunc(void) { } 15 15 16 virtual double operator()(double x) const{16 virtual double operator()(double x) { 17 17 cout<<"GenericFunc::operator(double) not implemented"<<endl; 18 18 throw NotAvailableOperation("GenericFunc::operator(double) not implemented"); 19 19 } 20 20 21 virtual double operator()(double x,double y) const{21 virtual double operator()(double x,double y) { 22 22 cout<<"GenericFunc::operator(double,double) not implemented"<<endl; 23 23 throw NotAvailableOperation("GenericFunc::operator(double,double) not implemented"); 24 24 } 25 25 26 virtual double operator()(double x,double y,double z) const{26 virtual double operator()(double x,double y,double z) { 27 27 cout<<"GenericFunc::operator(double,double,double) not implemented"<<endl; 28 28 throw NotAvailableOperation("GenericFunc::operator(double,double,double) not implemented"); 29 29 } 30 30 31 virtual double operator()(double* x) const{31 virtual double operator()(double* x) { 32 32 cout<<"GenericFunc::operator(double*) not implemented"<<endl; 33 33 throw NotAvailableOperation("GenericFunc::operator(double*) not implemented"); 34 34 } 35 35 36 virtual double operator()(vector<double>& x) const{36 virtual double operator()(vector<double>& x) { 37 37 cout<<"GenericFunc::operator(vector<double>&) not implemented"<<endl; 38 38 throw NotAvailableOperation("GenericFunc::operator(vector<double>&) not implemented");
Note:
See TracChangeset
for help on using the changeset viewer.