functional.h

Go to the documentation of this file.
00001 #ifndef  __Functional_h
00002 #define  __Functional_h
00003 
00004 #include  "application.h"
00005 
00006 
00007 /*-----------------------------------------*/
00008 
00009 namespace Gascoigne
00010 {
00011 
00013   //
00015   //
00017 
00018   class Functional : public virtual Application
00019   {
00020     private:
00021       
00022     protected:
00023       double  exact;
00024       bool    exactisknown;
00025 
00026     public:
00027       Functional() : Application(), exact(0.), exactisknown(0) {}
00028       ~Functional() {}
00029       Functional(const Functional& F) : Application(F) {
00030         exact = F.ExactValue();
00031       } 
00032 
00033       double  ExactValue() const { 
00034         return exact;
00035       }
00036       double& ExactValue() {
00037         exactisknown = 1; 
00038         return exact;
00039       }
00040       bool ExactValueIsKnown() const 
00041       { 
00042         return exactisknown; 
00043       }
00044   };
00045 }
00046 
00047 #endif

Generated on Thu Sep 14 10:34:36 2006 for Gascoigne by  doxygen 1.4.7