75 #ifndef SLIP_BOX1D_HPP
76 #define SLIP_BOX1D_HPP
86 #include <boost/serialization/access.hpp>
87 #include <boost/serialization/split_member.hpp>
88 #include <boost/serialization/version.hpp>
109 template <
typename CoordType>
138 Box1d(
const CoordType& x1,
139 const CoordType& x2);
197 const CoordType& x2);
205 std::string
name()
const;
217 CoordType
width()
const;
221 template<
class Archive>
222 void save(Archive & ar,
const unsigned int version)
const
224 ar & boost::serialization::base_object<slip::Box<CoordType,1> >(*this);
226 template<
class Archive>
227 void load(Archive & ar,
const unsigned int version)
229 ar & boost::serialization::base_object<slip::Box<CoordType,1> >(*this);
231 BOOST_SERIALIZATION_SPLIT_MEMBER()
238 template<
typename CoordType>
244 template<
typename CoordType>
248 Box<CoordType,1>(p1,p2)
251 template<
typename CoordType>
254 const CoordType& x2):
258 template<
typename CoordType>
268 template<
typename CoordType>
272 template<
typename CoordType>
276 template<
typename CoordType>
281 template<
typename CoordType>
285 template<
typename CoordType>
289 template<
typename CoordType>
294 template<
typename CoordType>
309 template<
typename CoordType>
313 template<
typename CoordType>
319 #endif //SLIP_BOX1D_HPP
Point< CoordType, 1 > & upper_left()
Accessor/Mutator of the upper_left point (p1) of Box1d.
CoordType width() const
compute the width of the Box1d.
void set_coord(const CoordType &x1, const CoordType &x2)
Mutator of the coordinates of the Box1d.
Provides an abstract class to manipulate nd box.
Provides an abstract class to modelize nd points.
Provides a class to modelize 1d points.
std::string name() const
Returns the name of the class.
Point< CoordType, 1 > & bottom_right()
Accessor/Mutator of the bottom_right point (p2) of Box1d.
This is a point1d class, a specialized version of Point<CoordType,DIM> with DIM = 1...
This is a Box1d class, a specialized version of slip::Box<CoordType,DIM> with DIM = 1...
CoordType length() const
compute the length of the Box1d.
Provides a class to modelize the difference of slip::Point1d.
Define an abstract Box structure.
Box1d()
Constructs a Box3d.
friend class boost::serialization::access