CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: AbsFunctional.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 00003 // A functional is a mapping from functions to real numbers. 00004 // Here is their base class: 00005 #ifndef _AbsFunctional_h_ 00006 #define _AbsFunctional_h_ 00007 00008 namespace Genfun { 00009 00010 class AbsFunction; 00011 00016 class AbsFunctional { 00017 00018 public: 00019 00020 // Constructor 00021 AbsFunctional(); 00022 00023 // Destructor: 00024 virtual ~AbsFunctional(); 00025 00026 // A functional is a mapping from functions to 00027 // real numbers. This defines that mapping: 00028 virtual double operator[] (const AbsFunction & function) const = 0; 00029 00030 }; 00031 } // namespace Genfun 00032 #endif