75 #ifndef SLIP_POINT1D_HPP
76 #define SLIP_POINT1D_HPP
83 #include <boost/serialization/access.hpp>
84 #include <boost/serialization/split_member.hpp>
85 #include <boost/serialization/version.hpp>
86 #include <boost/serialization/base_object.hpp>
100 template <
typename CoordType>
133 void x1(
const CoordType& x);
144 const CoordType&
x1()
const;
152 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::Point<CoordType,1> >(*this);
160 template<
class Archive>
161 void load(Archive & ar,
const unsigned int version)
163 ar & boost::serialization::base_object<slip::Point<CoordType,1> >(*this);
165 BOOST_SERIALIZATION_SPLIT_MEMBER()
193 template<
typename CoordType>
197 this->coord_[0] = CoordType(0);
200 template<
typename CoordType>
204 this->coord_[0] = CoordType(x1);
207 template<
typename CoordType>
211 template<
typename CoordType>
215 template<
typename CoordType>
219 template<
typename CoordType>
227 #endif //SLIP_POINT1D_HPP
std::string name() const
Returns the name of the class.
slip::Point1d< unsigned int > Point1d_ui
unsigned int alias
slip::Point1d< unsigned long > Point1d_ul
unsigned long alias
slip::Point1d< int > Point1d_i
int alias
Provides an abstract class to modelize nd points.
Define an abstract Point structure.
Point< CoordType, 1 > base
slip::Point1d< double > Point1d_d
double alias
This is a point1d class, a specialized version of Point<CoordType,DIM> with DIM = 1...
friend class boost::serialization::access
slip::Point1d< unsigned char > Point1d_uc
unsigned char alias
slip::Point1d< unsigned short > Point1d_us
unsigned long alias
slip::Point1d< short > Point1d_s
short alias
Point1d()
Constructs a Point1d.
CoordType & x1()
Accessor/Mutator of the first coordinate of Point1d.
slip::Point1d< long > Point1d_l
long alias
slip::Point1d< char > Point1d_c
char alias
slip::Point1d< float > Point1d_f
float alias