/usr/include/boost/polygon
NameSizeModeActions
detail/-0755rm
gmp_override.hpp32450644editdlrm
gtl.hpp6960644editdlrm
interval_concept.hpp259930644editdlrm
interval_data.hpp27010644editdlrm
interval_traits.hpp13640644editdlrm
isotropy.hpp175710644editdlrm
point_concept.hpp127430644editdlrm
point_data.hpp32520644editdlrm
point_traits.hpp13280644editdlrm
polygon.hpp24180644editdlrm
polygon_45_data.hpp23300644editdlrm
polygon_45_set_concept.hpp193930644editdlrm
polygon_45_set_data.hpp783300644editdlrm
polygon_45_set_traits.hpp62160644editdlrm
polygon_45_with_holes_data.hpp35100644editdlrm
polygon_90_data.hpp28880644editdlrm
polygon_90_set_concept.hpp269230644editdlrm
polygon_90_set_data.hpp445010644editdlrm
polygon_90_set_traits.hpp164510644editdlrm
polygon_90_with_holes_data.hpp39940644editdlrm
polygon_data.hpp22180644editdlrm
polygon_set_concept.hpp265700644editdlrm
polygon_set_data.hpp402510644editdlrm
polygon_set_traits.hpp53850644editdlrm
polygon_traits.hpp741800644editdlrm
polygon_with_holes_data.hpp34580644editdlrm
rectangle_concept.hpp508980644editdlrm
rectangle_data.hpp21200644editdlrm
rectangle_traits.hpp13490644editdlrm
segment_concept.hpp200860644editdlrm
segment_data.hpp27720644editdlrm
segment_traits.hpp14630644editdlrm
segment_utils.hpp49630644editdlrm
transform.hpp150040644editdlrm
voronoi.hpp45110644editdlrm
voronoi_builder.hpp196720644editdlrm
voronoi_diagram.hpp194890644editdlrm
voronoi_geometry_type.hpp14070644editdlrm
Edit: /usr/include/boost/polygon/rectangle_data.hpp (2120B)
/* Copyright 2008 Intel Corporation Use, modification and distribution are subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt). */ #ifndef BOOST_POLYGON_RECTANGLE_DATA_HPP #define BOOST_POLYGON_RECTANGLE_DATA_HPP #include "isotropy.hpp" //interval #include "interval_data.hpp" namespace boost { namespace polygon{ template class rectangle_data { public: typedef T coordinate_type; typedef interval_data interval_type; inline rectangle_data():ranges_() {} inline rectangle_data(T xl, T yl, T xh, T yh):ranges_() { if(xl > xh) std::swap(xl, xh); if(yl > yh) std::swap(yl, yh); ranges_[HORIZONTAL] = interval_data(xl, xh); ranges_[VERTICAL] = interval_data(yl, yh); } template inline rectangle_data(const interval_type_1& hrange, const interval_type_2& vrange):ranges_() { set(HORIZONTAL, hrange); set(VERTICAL, vrange); } inline rectangle_data(const rectangle_data& that):ranges_() { (*this) = that; } inline rectangle_data& operator=(const rectangle_data& that) { ranges_[0] = that.ranges_[0]; ranges_[1] = that.ranges_[1]; return *this; } template inline rectangle_data& operator=(const T2& rvalue); template inline bool operator==(const T2& rvalue) const; template inline bool operator!=(const T2& rvalue) const { return !((*this) == rvalue); } inline interval_data get(orientation_2d orient) const { return ranges_[orient.to_int()]; } inline coordinate_type get(direction_2d dir) const { return ranges_[orientation_2d(dir).to_int()].get(direction_1d(dir)); } inline void set(direction_2d dir, coordinate_type value) { return ranges_[orientation_2d(dir).to_int()].set(direction_1d(dir), value); } template inline void set(orientation_2d orient, const interval_type_1& interval); private: interval_data ranges_[2]; }; } } #endif