75 #ifndef SLIP_DPOINT1D_HPP
76 #define SLIP_DPOINT1D_HPP
83 #include <boost/serialization/access.hpp>
84 #include <boost/serialization/split_member.hpp>
85 #include <boost/serialization/version.hpp>
100 template <
typename CoordType>
133 void dx1(
const CoordType& dx);
143 const CoordType&
dx1()
const;
151 std::string
name()
const;
155 template<
class Archive>
156 void save(Archive & ar,
const unsigned int version)
const
158 ar & boost::serialization::base_object<slip::DPoint<CoordType,1> >(*this);
160 template<
class Archive>
161 void load(Archive & ar,
const unsigned int version)
163 ar & boost::serialization::base_object<slip::DPoint<CoordType,1> >(*this);
165 BOOST_SERIALIZATION_SPLIT_MEMBER()
171 template<
typename CoordType>
175 this->coord_[0] = CoordType(0);
178 template<
typename CoordType>
182 this->coord_[0] = CoordType(dx1);
185 template<
typename CoordType>
189 template<
typename CoordType>
193 template<
typename CoordType>
197 template<
typename CoordType>
205 #endif //SLIP_DPOINT1D_HPP
Difference of Point1D class, specialization of DPoint<CoordType,DIM> with DIM = 1.
DPoint1d()
Constructs a DPoint1d.
friend class boost::serialization::access
Define an abstract DPoint structure.
std::string name() const
Returns the name of the class.
CoordType & dx1()
Accessor/Mutator of the first coordinate of DPoint1d.
DPoint< CoordType, 1 > base
Provides an abstract class to modelize the difference of slip::Point.