Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:51

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
0004 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
0005 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
0006 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
0007 
0008 // This file was modified by Oracle on 2015, 2016, 2017, 2018.
0009 // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
0010 
0011 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
0012 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0013 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0014 
0015 // Distributed under the Boost Software License, Version 1.0.
0016 // (See accompanying file LICENSE_1_0.txt or copy at
0017 // http://www.boost.org/LICENSE_1_0.txt)
0018 
0019 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
0020 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
0021 
0022 
0023 #include <boost/geometry/core/tags.hpp>
0024 
0025 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
0026 
0027 #include <boost/geometry/strategy/expand.hpp>
0028 
0029 
0030 namespace boost { namespace geometry
0031 {
0032 
0033 namespace strategy { namespace expand
0034 {
0035 
0036 class cartesian_segment
0037 {
0038 public:
0039     template <typename Box, typename Segment>
0040     static void apply(Box & box, Segment const& segment)
0041     {
0042         geometry::detail::expand::expand_indexed
0043             <
0044                 0, dimension<Segment>::value
0045             >::apply(box, segment);
0046     }
0047 };
0048 
0049 
0050 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0051 
0052 namespace services
0053 {
0054 
0055 template <typename CalculationType>
0056 struct default_strategy<segment_tag, cartesian_tag, CalculationType>
0057 {
0058     typedef cartesian_segment type;
0059 };
0060 
0061 
0062 } // namespace services
0063 
0064 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0065 
0066 
0067 }} // namespace strategy::expand
0068 
0069 }} // namespace boost::geometry
0070 
0071 #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP