adaptordata.h

Go to the documentation of this file.
00001 #ifndef __adaptordata_h
00002 #define __adaptordata_h
00003 
00004 #include  <string>
00005 #include  <stdio.h>
00006 #include  "paramfile.h"
00007 
00008 namespace Gascoigne
00009 {
00010 class AdaptorData
00011 {
00012   int     inc,inr,indr,inactual,idim,mnodes,iorder;
00013   double  irfactor,icfactor,idrfactor,iminf,imaxf,itol,ieta,_randomp;
00014   double  iglobal_conv,ilocal_conv;
00015   
00016 
00017   void    ErrorMessage(const std::string&, const std::string&) const;
00018 
00019   void    CheckEstimate  () const;
00020   void    CheckFunctional() const;
00021   void    CheckAdaptor   () const;
00022 
00023   std::string  _functional, _adaptor, _estimate;
00024 
00025 public:
00026 
00027   /* Zugriff */
00028 
00029   const std::string& functional() const { return _functional;}
00030         std::string& functional()       { return _functional;}
00031   const std::string& adaptor   () const { return _adaptor;}
00032   const std::string& estimate  () const { return _estimate;}
00033 
00034   int      order()    const {return iorder;}
00035   int&     order()          {return iorder;}
00036   int      dim()       const {return idim;}
00037   int&     dim()             {return idim;}
00038   int      maxnodes()  const {return mnodes;}
00039   int      ncells()    const {return inactual;}
00040   int&     ncells()          {return inactual;}
00041   int      nc()        const {return inc;}
00042   int&     nc()              {return inc;}
00043   int      nr()        const {return inr;}
00044   int&     nr()              {return inr;}
00045   int      ndr()       const {return indr;}
00046   double   tol()       const {return itol;}
00047   double   drfactor()  const {return idrfactor;}
00048   double   rfactor()   const {return irfactor;}
00049   double&  rfactor()         {return irfactor;}
00050   double   global_conv()   const {return iglobal_conv;}
00051   double&  global_conv()         {return iglobal_conv;}
00052   double   local_conv()   const {return ilocal_conv;}
00053   double&  local_conv()         {return ilocal_conv;}
00054   double   cfactor()   const {return icfactor;}
00055   double   minf()      const {return iminf;}
00056   double&  minf()            {return iminf;}
00057   double   maxf()      const {return imaxf;}
00058   double&  maxf()            {return imaxf;}
00059   double   eta()       const { return ieta;}
00060   double&  eta()             { return ieta;}
00061   double   randomp()   const { return _randomp;}
00062 
00063   /*   Funktionen   */
00064 
00065   AdaptorData();
00066 
00067   void reset();
00068   void read (const ParamFile* pf);
00069 };
00070 }
00071 
00072 #endif

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