residualfunctional.h

Go to the documentation of this file.
00001 #ifndef  __ResidualFunctional_h
00002 #define  __ResidualFunctional_h
00003 
00004 #include  "functional.h"
00005 #include  <string>
00006 #include  <set>
00007 #include  "dirichletdata.h"
00008 
00009 /*-----------------------------------------*/
00010 
00011 
00012 namespace Gascoigne
00013 {
00014 class ResidualFunctional : public virtual Functional
00015 {
00016 protected:
00017 
00018   int            _comp;
00019   std::set<int>  _col;
00020   double         _scale;
00021 
00022   const DirichletData*   _DD;
00023 
00024 public:
00025 
00026   ResidualFunctional();
00027   ~ResidualFunctional();
00028   ResidualFunctional(const ResidualFunctional& F) : Functional(F)
00029     {
00030        _comp  = F.GetComp();
00031        _col   = F.GetColors();
00032        _scale = F.GetScale();
00033        _DD    = F.GetDirichletData();
00034     }
00035 
00036   std::string GetName() const {return "ResidualFunctional";}
00037 
00038   int           GetComp()   const {return _comp;}
00039   int&          GetComp()         {return _comp;}
00040   
00041   std::set<int> GetColors() const {return _col;}
00042   std::set<int>&GetColors()       {return _col;}
00043   
00044   double        GetScale()  const { return _scale;}
00045   double&       GetScale()        { return _scale;}
00046 
00047   const DirichletData* GetDirichletData()   const {return _DD;}
00048   const DirichletData*& GetDirichletDataPointer() { return _DD;}
00049   
00050 };
00051 }
00052 
00053 #endif

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