CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP/GenericFunctions/AbsFunctional.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: AbsFunctional.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 // A functional is a mapping from functions to real numbers.
4 // Here is their base class:
5 #ifndef _AbsFunctional_h_
6 #define _AbsFunctional_h_
7 
8 namespace Genfun {
9 
10  class AbsFunction;
11 
16  class AbsFunctional {
17 
18  public:
19 
20  // Constructor
21  AbsFunctional();
22 
23  // Destructor:
24  virtual ~AbsFunctional();
25 
26  // A functional is a mapping from functions to
27  // real numbers. This defines that mapping:
28  virtual double operator[] (const AbsFunction & function) const = 0;
29 
30  };
31 } // namespace Genfun
32 #endif
virtual double operator[](const AbsFunction &function) const =0