37 #ifndef _CHASTEPOINT_HPP_
38 #define _CHASTEPOINT_HPP_
48 template<
unsigned DIM>
52 friend class boost::serialization::access;
59 template<
class Archive>
60 void serialize(Archive & archive,
const unsigned int version)
152 namespace serialization
155 template<
class Archive,
unsigned SPACE_DIM>
156 inline void save_construct_data(
159 for (
unsigned i = 0; i < SPACE_DIM; i ++)
172 template<
class Archive,
unsigned SPACE_DIM>
173 inline void load_construct_data(
176 std::vector<double> coords;
177 coords.resize(SPACE_DIM);
178 for (
unsigned i=0; i<SPACE_DIM; i++)
182 coords[i] = coordinate;
208 ChastePoint(
double v1=0,
double v2=0,
double v3=0);
216 double operator[] (
unsigned i)
const;
219 #endif //_CHASTEPOINT_HPP_
c_vector< double, DIM > & rGetLocation()
double GetWithDefault(unsigned i, double def=0.0) const
double operator[](unsigned i) const
c_vector< double, DIM > mLocation
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
void SetCoordinate(unsigned i, double value)
ChastePoint(double v1=0, double v2=0, double v3=0)
void serialize(Archive &archive, const unsigned int version)
bool IsSamePoint(const ChastePoint< DIM > &rPoint) const