diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-08-24 12:04:51 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:21:12 +0000 |
commit | a62e8ee3f1e86100cda633f51c22ee063e28df76 (patch) | |
tree | 96c4522bba984cfb4a1e53ce75733d6cdbf08c01 /CarpetDev/CarpetIOF5_standalone/src/data_region.hh | |
parent | eb813afcef1be0aba7154fe41d21e4a7657371ad (diff) |
CarpetIOF5: Rename old thorn
Diffstat (limited to 'CarpetDev/CarpetIOF5_standalone/src/data_region.hh')
-rw-r--r-- | CarpetDev/CarpetIOF5_standalone/src/data_region.hh | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5_standalone/src/data_region.hh b/CarpetDev/CarpetIOF5_standalone/src/data_region.hh new file mode 100644 index 000000000..35e5ecc79 --- /dev/null +++ b/CarpetDev/CarpetIOF5_standalone/src/data_region.hh @@ -0,0 +1,64 @@ +#ifndef DATA_REGION_HH +#define DATA_REGION_HH + +#include <string> + +#include <hdf5.h> + +#include "bbox.hh" +#include "defs.hh" + +#include "physical_quantity.hh" + + + +namespace CarpetIOF5 { + + namespace F5 { + + using std::string; + + class data_region_t { + + physical_quantity_t & m_physical_quantity; + + bbox<int, dim> const m_region; + string const m_name; + + hid_t m_hdf5_data_region; + + data_region_t (); + data_region_t (data_region_t const &); + data_region_t operator= (data_region_t const &); + + public: + + data_region_t (physical_quantity_t & physical_quantity, + bbox<int, dim> const & region); + + virtual + ~ data_region_t (); + + physical_quantity_t & + get_physical_quantity () + const; + + bbox<int, dim> const & + get_region () + const; + + hid_t + get_hdf5_data_region () + const; + + virtual bool + invariant () + const; + + }; + + } // namespace F5 + +} // namespace CarpetIOF5 + +#endif // #ifndef DATA_REGION_HH |