37 #ifndef CHASTECUBOID_HPP_
38 #define CHASTECUBOID_HPP_
40 #include <boost/serialization/base_object.hpp>
41 #include "AbstractChasteRegion.hpp"
42 #include "ChastePoint.hpp"
50 template <
unsigned SPACE_DIM>
61 template<
class Archive>
62 void serialize(Archive & archive,
const unsigned int version)
64 archive & boost::serialization::base_object<AbstractChasteRegion<SPACE_DIM> >(*this);
99 double GetWidth(
unsigned rDimension)
const;
115 namespace serialization
118 template<
class Archive,
unsigned SPACE_DIM>
119 inline void save_construct_data(
132 template<
class Archive,
unsigned SPACE_DIM>
133 inline void load_construct_data(
142 ::new(t)
ChasteCuboid<SPACE_DIM>((*p_lower_corner), (*p_upper_corner));
144 delete p_upper_corner;
145 delete p_lower_corner;
friend class boost::serialization::access
ChastePoint< SPACE_DIM > mUpperCorner
bool DoesContain(const ChastePoint< SPACE_DIM > &rPointToCheck) const
const ChastePoint< SPACE_DIM > & rGetUpperCorner() const
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double GetWidth(unsigned rDimension) const
ChasteCuboid(ChastePoint< SPACE_DIM > &rLowerPoint, ChastePoint< SPACE_DIM > &rUpperPoint)
void serialize(Archive &archive, const unsigned int version)
unsigned GetLongestAxis() const
ChastePoint< SPACE_DIM > mLowerCorner
const ChastePoint< SPACE_DIM > & rGetLowerCorner() const