/usr/include/boost/geometry/algorithms/detail
NameSizeModeActions
buffer/-0755rm
centroid/-0755rm
closest_feature/-0755rm
comparable_distance/-0755rm
covered_by/-0755rm
disjoint/-0755rm
distance/-0755rm
envelope/-0755rm
equals/-0755rm
expand/-0755rm
intersection/-0755rm
intersects/-0755rm
is_simple/-0755rm
is_valid/-0755rm
make/-0755rm
overlaps/-0755rm
overlay/-0755rm
relate/-0755rm
relation/-0755rm
sections/-0755rm
touches/-0755rm
turns/-0755rm
within/-0755rm
assign_box_corners.hpp33380644editdlrm
assign_indexed_point.hpp26560644editdlrm
assign_values.hpp89570644editdlrm
as_range.hpp26880644editdlrm
azimuth.hpp48020644editdlrm
calculate_null.hpp11440644editdlrm
calculate_point_order.hpp111450644editdlrm
calculate_sum.hpp20470644editdlrm
check_iterator_range.hpp20120644editdlrm
convert_indexed_to_indexed.hpp22960644editdlrm
convert_point_to_point.hpp22590644editdlrm
counting.hpp27460644editdlrm
course.hpp11800644editdlrm
direction_code.hpp92050644editdlrm
expand_by_epsilon.hpp38800644editdlrm
extreme_points.hpp197670644editdlrm
for_each_range.hpp49620644editdlrm
get_max_size.hpp20540644editdlrm
has_self_intersections.hpp53890644editdlrm
interior_iterator.hpp17680644editdlrm
max_interval_gap.hpp84300644editdlrm
multi_modify.hpp18830644editdlrm
multi_modify_with_predicate.hpp14420644editdlrm
multi_sum.hpp14900644editdlrm
normalize.hpp12960644editdlrm
not.hpp20320644editdlrm
num_distinct_consecutive_points.hpp24490644editdlrm
partition.hpp298240644editdlrm
point_is_spike_or_equal.hpp54550644editdlrm
point_on_border.hpp52540644editdlrm
recalculate.hpp69050644editdlrm
ring_identifier.hpp22850644editdlrm
signed_size_type.hpp7700644editdlrm
single_geometry.hpp28400644editdlrm
sub_range.hpp40970644editdlrm
sweep.hpp20860644editdlrm
throw_on_empty_input.hpp20730644editdlrm
tupled_output.hpp192350644editdlrm
Edit: /usr/include/boost/geometry/algorithms/detail/recalculate.hpp (6905B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2013 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2013 Bruno Lalande, Paris, France. // Copyright (c) 2013 Mateusz Loskot, London, UK. // Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland. // Use, modification and distribution is 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_GEOMETRY_ALGORITHMS_DETAIL_RECALCULATE_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RECALCULATE_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DETAIL namespace detail { namespace recalculate { template struct recalculate_point { template static inline void apply(Point1& point1, Point2 const& point2, Strategy const& strategy) { std::size_t const dim = Dimension - 1; geometry::set(point1, strategy.template apply(geometry::get(point2))); recalculate_point::apply(point1, point2, strategy); } }; template <> struct recalculate_point<0> { template static inline void apply(Point1&, Point2 const&, Strategy const&) { } }; template struct recalculate_indexed { template static inline void apply(Geometry1& geometry1, Geometry2 const& geometry2, Strategy const& strategy) { // Do it for both indices in one dimension static std::size_t const dim = Dimension - 1; geometry::set<0, dim>(geometry1, strategy.template apply(geometry::get<0, dim>(geometry2))); geometry::set<1, dim>(geometry1, strategy.template apply(geometry::get<1, dim>(geometry2))); recalculate_indexed::apply(geometry1, geometry2, strategy); } }; template <> struct recalculate_indexed<0> { template static inline void apply(Geometry1& , Geometry2 const& , Strategy const& ) { } }; struct range_to_range { template < typename Range1, typename Range2, typename Strategy > static inline void apply(Range1& destination, Range2 const& source, Strategy const& strategy) { typedef typename geometry::point_type::type point_type; typedef recalculate_point::value> per_point; geometry::clear(destination); for (typename boost::range_iterator::type it = boost::begin(source); it != boost::end(source); ++it) { point_type p; per_point::apply(p, *it, strategy); geometry::append(destination, p); } } }; struct polygon_to_polygon { private: template < typename IteratorIn, typename IteratorOut, typename Strategy > static inline void iterate(IteratorIn begin, IteratorIn end, IteratorOut it_out, Strategy const& strategy) { for (IteratorIn it_in = begin; it_in != end; ++it_in, ++it_out) { range_to_range::apply(*it_out, *it_in, strategy); } } template < typename InteriorRingsOut, typename InteriorRingsIn, typename Strategy > static inline void apply_interior_rings( InteriorRingsOut& interior_rings_out, InteriorRingsIn const& interior_rings_in, Strategy const& strategy) { traits::resize::apply(interior_rings_out, boost::size(interior_rings_in)); iterate( boost::begin(interior_rings_in), boost::end(interior_rings_in), boost::begin(interior_rings_out), strategy); } public: template < typename Polygon1, typename Polygon2, typename Strategy > static inline void apply(Polygon1& destination, Polygon2 const& source, Strategy const& strategy) { range_to_range::apply(geometry::exterior_ring(destination), geometry::exterior_ring(source), strategy); apply_interior_rings(geometry::interior_rings(destination), geometry::interior_rings(source), strategy); } }; }} // namespace detail::recalculate #endif // DOXYGEN_NO_DETAIL #ifndef DOXYGEN_NO_DISPATCH namespace dispatch { template < typename Geometry1, typename Geometry2, typename Tag1 = typename geometry::tag::type, typename Tag2 = typename geometry::tag::type > struct recalculate : not_implemented {}; template struct recalculate : detail::recalculate::recalculate_point::value> {}; template struct recalculate : detail::recalculate::recalculate_indexed::value> {}; template struct recalculate : detail::recalculate::recalculate_indexed::value> {}; template struct recalculate : detail::recalculate::polygon_to_polygon {}; } // namespace dispatch #endif // DOXYGEN_NO_DISPATCH template inline void recalculate(Geometry1& geometry1, Geometry2 const& geometry2, Strategy const& strategy) { concepts::check(); concepts::check(); // static assert dimensions (/types) are the same dispatch::recalculate::apply(geometry1, geometry2, strategy); } }} // namespace boost::geometry #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_RECALCULATE_HPP