File indexing completed on 2025-01-18 09:36:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
0020 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
0021
0022 #include <boost/geometry/core/tags.hpp>
0023
0024 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
0025
0026 #include <boost/geometry/strategy/expand.hpp>
0027
0028
0029 namespace boost { namespace geometry
0030 {
0031
0032 namespace strategy { namespace expand
0033 {
0034
0035 struct cartesian_box
0036 {
0037 template <typename BoxOut, typename BoxIn>
0038 static void apply(BoxOut & box_out, BoxIn const& box_in)
0039 {
0040 geometry::detail::expand::expand_indexed
0041 <
0042 0, dimension<BoxIn>::value
0043 >::apply(box_out, box_in);
0044 }
0045 };
0046
0047
0048 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0049
0050 namespace services
0051 {
0052
0053 template <typename CalculationType>
0054 struct default_strategy<box_tag, cartesian_tag, CalculationType>
0055 {
0056 typedef cartesian_box type;
0057 };
0058
0059
0060 }
0061
0062 #endif
0063
0064
0065 }}
0066
0067 }}
0068
0069 #endif