00001 00006 #ifndef functionSpcTest_hh 00007 #define functionSpcTest_hh 00008 00009 #include "basics/testcase.hh" 00010 #include "basics/typedefs.hh" 00011 #include "space/space.hh" 00012 00013 namespace concepts { 00014 // forward declaration 00015 class Mesh2; 00016 } 00017 00018 namespace test { 00019 00031 class ElementFunctionTest : public TestCase { 00032 public: 00033 ElementFunctionTest(); 00034 virtual ~ElementFunctionTest() {} 00035 virtual void run(); 00036 00038 00039 00041 template<class F> 00042 void hp2DValue(const F dummy); 00044 private: 00045 // Mesh 00046 std::auto_ptr<concepts::Mesh2> msh_; 00047 // Space 00048 std::auto_ptr<concepts::Space<concepts::Real> > spc_; 00049 00054 const concepts::Real f(const uint j, const concepts::Real x) const; 00055 }; 00056 00057 } // namespace test 00058 00059 #endif // functionSpcTest_hh