annotate DEPENDENCIES/generic/include/boost/geometry/index/detail/algorithms/bounds.hpp @ 46:d572322e2efe

Fix to .cat file check (was susceptible to DOS line-endings) and subrepo update
author Chris Cannam
date Thu, 07 Aug 2014 14:39:38 +0100
parents 2665513ce2d3
children c530137014c0
rev   line source
Chris@16 1 // Boost.Geometry Index
Chris@16 2 //
Chris@16 3 // n-dimensional bounds
Chris@16 4 //
Chris@16 5 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
Chris@16 6 //
Chris@16 7 // Use, modification and distribution is subject to the Boost Software License,
Chris@16 8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10
Chris@16 11 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_BOUNDS_HPP
Chris@16 12 #define BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_BOUNDS_HPP
Chris@16 13
Chris@16 14 namespace boost { namespace geometry { namespace index { namespace detail {
Chris@16 15
Chris@16 16 namespace dispatch {
Chris@16 17
Chris@16 18 template <typename Geometry,
Chris@16 19 typename Bounds,
Chris@16 20 typename TagGeometry = typename geometry::tag<Geometry>::type,
Chris@16 21 typename TagBounds = typename geometry::tag<Bounds>::type>
Chris@16 22 struct bounds
Chris@16 23 {
Chris@16 24 static inline void apply(Geometry const& g, Bounds & b)
Chris@16 25 {
Chris@16 26 geometry::convert(g, b);
Chris@16 27 }
Chris@16 28 };
Chris@16 29
Chris@16 30 } // namespace dispatch
Chris@16 31
Chris@16 32 template <typename Geometry, typename Bounds>
Chris@16 33 inline void bounds(Geometry const& g, Bounds & b)
Chris@16 34 {
Chris@16 35 concept::check_concepts_and_equal_dimensions<Geometry const, Bounds>();
Chris@16 36 dispatch::bounds<Geometry, Bounds>::apply(g, b);
Chris@16 37 }
Chris@16 38
Chris@16 39 }}}} // namespace boost::geometry::index::detail
Chris@16 40
Chris@16 41 #endif // BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_BOUNDS_HPP