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