Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef AMROC_GRIDDATA_FUNCTION_H 00002 #define AMROC_GRIDDATA_FUNCTION_H 00003 00011 #include "GridDataFunctions/GridDataFunctionInterface.h" 00012 00013 #ifndef GridDataFunctionName 00014 #define GridDataFunction(dim) name2(GridDataFunction,dim) 00015 #define GridDataFunctionName 00016 #endif 00017 00024 template <class VectorType> 00025 class GridDataFunction(DIM) : 00026 public GridDataFunctionInterface(DIM)<VectorType> { 00027 public: 00028 GridDataFunction(DIM)() { 00029 _Hierarchy = (GridHierarchy*) 0; 00030 } 00031 00032 virtual void register_at(ControlDevice& Ctrl) {} 00033 virtual void register_at(ControlDevice& Ctrl,const string& prefix) {} 00034 virtual void init() {} 00035 virtual void update() {} 00036 virtual void finish() {} 00037 00038 virtual void SetupData() {} 00039 00040 inline void SetGridHierarchy(GridHierarchy* gh) { _Hierarchy = gh; } 00041 inline GridHierarchy& GH() { return *_Hierarchy; } 00042 inline const GridHierarchy& GH() const { return *_Hierarchy; } 00043 00044 protected: 00045 GridHierarchy* _Hierarchy; 00046 }; 00047 00048 00049 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04