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


Ignore:
Timestamp:
Nov 23, 2007, 7:15:11 PM (18 years ago)
Author:
cmv
Message:

makefile pour tag + GenericFunc herite de ClassFunc, cmv+rz 23/11/2007

File:
1 edited

Legend:

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

    r3379 r3406  
    33
    44#include "pexceptions.h"
     5#include "classfunc.h"
    56#include <vector>
    67
     
    89
    910//! Abstract interface definition for functions viewed as classes
    10 class GenericFunc {
     11class GenericFunc : public ClassFunc {
    1112public:
    12   GenericFunc(void) { } 
     13  GenericFunc(void) { }
    1314  virtual ~GenericFunc(void) { }
    1415
    15   virtual double operator()(double x) {
     16  virtual double operator()(double x) const {
    1617    cout<<"GenericFunc::operator(double) not implemented"<<endl;
    1718    throw NotAvailableOperation("GenericFunc::operator(double) not implemented");
    1819  }
    1920
    20   virtual double operator()(double x,double y) {
     21  virtual double operator()(double x,double y) const {
    2122    cout<<"GenericFunc::operator(double,double) not implemented"<<endl;
    2223    throw NotAvailableOperation("GenericFunc::operator(double,double) not implemented");
    2324  }
    2425
    25   virtual double operator()(double x,double y,double z) {
     26  virtual double operator()(double x,double y,double z) const {
    2627    cout<<"GenericFunc::operator(double,double,double) not implemented"<<endl;
    2728    throw NotAvailableOperation("GenericFunc::operator(double,double,double) not implemented");
    2829  }
    2930
    30   virtual double operator()(double* x) {
     31  virtual double operator()(double* x) const {
    3132    cout<<"GenericFunc::operator(double*) not implemented"<<endl;
    3233    throw NotAvailableOperation("GenericFunc::operator(double*) not implemented");
    3334  }
    3435
    35   virtual double operator()(vector<double>& x) {
     36  virtual double operator()(vector<double>& x) const {
    3637    cout<<"GenericFunc::operator(vector<double>&) not implemented"<<endl;
    3738    throw NotAvailableOperation("GenericFunc::operator(vector<double>&) not implemented");
Note: See TracChangeset for help on using the changeset viewer.