75 #ifndef SLIP_DPOINT4D_HPP
76 #define SLIP_DPOINT4D_HPP
98 template <
typename CoordType>
130 const CoordType&
dx2,
131 const CoordType&
dx3,
132 const CoordType&
dx4);
144 void dx1(
const CoordType& dx);
154 const CoordType&
dx1()
const;
159 void dx2(
const CoordType& dx);
169 const CoordType&
dx2()
const;
174 void dx3(
const CoordType& dx);
184 const CoordType&
dx3()
const;
189 void dx4(
const CoordType& dx);
199 const CoordType&
dx4()
const;
209 const CoordType&
dx2,
210 const CoordType&
dx3,
211 const CoordType&
dx4);
218 std::string
name()
const;
222 template<
class Archive>
223 void save(Archive & ar,
const unsigned int version)
const
225 ar & boost::serialization::base_object<slip::DPoint<CoordType,4> >(*this);
227 template<
class Archive>
228 void load(Archive & ar,
const unsigned int version)
230 ar & boost::serialization::base_object<slip::DPoint<CoordType,4> >(*this);
232 BOOST_SERIALIZATION_SPLIT_MEMBER()
238 template<
typename CoordType>
242 this->coord_[0] = CoordType(0);
243 this->coord_[1] = CoordType(0);
244 this->coord_[2] = CoordType(0);
245 this->coord_[3] = CoordType(0);
248 template<
typename CoordType>
251 slip::
DPoint<CoordType,4>(array)
255 template<
typename CoordType>
258 const CoordType& dx2,
const CoordType& dx3,
259 const CoordType& dx4)
261 this->coord_[0] = CoordType(dx1);
262 this->coord_[1] = CoordType(dx2);
263 this->coord_[2] = CoordType(dx3);
264 this->coord_[3] = CoordType(dx4);
267 template<
typename CoordType>
271 template<
typename CoordType>
275 template<
typename CoordType>
279 template<
typename CoordType>
283 template<
typename CoordType>
287 template<
typename CoordType>
291 template<
typename CoordType>
295 template<
typename CoordType>
299 template<
typename CoordType>
303 template<
typename CoordType>
307 template<
typename CoordType>
311 template<
typename CoordType>
315 template<
typename CoordType>
318 const CoordType& dx2,
319 const CoordType& dx3,
320 const CoordType& dx4)
322 this->coord_[0] = dx1;
323 this->coord_[1] = dx2;
324 this->coord_[2] = dx3;
325 this->coord_[3] = dx4;
329 template<
typename CoordType>
336 #endif //SLIP_DPOINT4D
DPoint4d()
Constructs a DPoint4d.
friend class boost::serialization::access
CoordType & dx3()
Accessor/Mutator of the third coordinate of DPoint4d.
CoordType & dx4()
Accessor/Mutator of the fourth coordinate of DPoint4d.
void set_coord(const CoordType &dx1, const CoordType &dx2, const CoordType &dx3, const CoordType &dx4)
Accessor/Mutator of the coordinates of DPoint4d.
slip::DPoint< CoordType, 4 > base
Difference of Point4D class, specialization of DPoint<CoordType,DIM> with DIM = 4.
Define an abstract DPoint structure.
CoordType & dx1()
Accessor/Mutator of the first coordinate of DPoint4d.
CoordType & dx2()
Accessor/Mutator of the second coordinate of DPoint4d.
std::string name() const
Returns the name of the class.
Provides an abstract class to modelize the difference of slip::Point.