Home
last modified time | relevance | path

Searched full:strategy (Results 1 – 25 of 2272) sorted by relevance

12345678910>>...91

/third_party/boost/libs/geometry/test/algorithms/distance/
Ddistance_brute_force.hpp58 template <typename Geometry1, typename Geometry2, typename Strategy>
60 typename distance_result<Geometry1, Geometry2, Strategy>::type
63 Strategy const& strategy) in apply()
68 return geometry::distance(geometry1, geometry2, strategy); in apply()
73 template <typename Geometry1, typename Geometry2, typename Strategy>
75 typename distance_result<Geometry1, Geometry2, Strategy>::type
78 Strategy const& strategy) in bg_distance() argument
80 return distance_from_bg::apply(geometry1, geometry2, strategy); in bg_distance()
87 template <typename Geometry, typename Iterator, typename Strategy>
92 Strategy
[all …]
Ddistance_se_pl_l.cpp32 namespace services = bg::strategy::distance::services;
35 typedef bg::strategy::distance::haversine<double> point_point_strategy;
36 typedef bg::strategy::distance::cross_track<> point_segment_strategy;
41 template <typename Strategy>
45 Strategy const& strategy) in pp_distance() argument
50 return bg::distance(p1, p2) * strategy.radius(); in pp_distance()
53 template <typename Strategy>
57 Strategy const&) in pp_comparable_distance()
65 template <typename Strategy>
69 Strategy const& strategy) in ps_distance() argument
[all …]
Dtest_empty_geometry.hpp15 template <typename Point, typename Strategy>
16 void test_more_empty_input_pointlike_pointlike(Strategy const& strategy) in test_more_empty_input_pointlike_pointlike() argument
27 test_empty_input(multipoint_empty, point, strategy); in test_more_empty_input_pointlike_pointlike()
30 test_empty_input(point, multipoint_empty, strategy); in test_more_empty_input_pointlike_pointlike()
33 test_empty_input(multipoint_empty, multipoint_empty, strategy); in test_more_empty_input_pointlike_pointlike()
41 template <typename Point, typename Strategy>
42 void test_more_empty_input_pointlike_linear(Strategy const& strategy) in test_more_empty_input_pointlike_linear() argument
57 test_empty_input(multipoint_empty, line, strategy); in test_more_empty_input_pointlike_linear()
60 test_empty_input(line, multipoint_empty, strategy); in test_more_empty_input_pointlike_linear()
61 test_empty_input(point, line_empty, strategy); in test_more_empty_input_pointlike_linear()
[all …]
Ddistance_ca_l_ar.cpp36 namespace services = bg::strategy::distance::services;
39 typedef bg::strategy::distance::pythagoras<> point_point_strategy;
40 typedef bg::strategy::distance::projected_point<> point_segment_strategy;
41 typedef bg::strategy::distance::cartesian_segment_box<> segment_box_strategy;
45 template <typename Strategy>
46 void test_distance_segment_polygon(Strategy const& strategy) in test_distance_segment_polygon() argument
56 10, 100, strategy); in test_distance_segment_polygon()
60 10, 100, strategy); in test_distance_segment_polygon()
64 0, 0, strategy); in test_distance_segment_polygon()
68 0, 0, strategy); in test_distance_segment_polygon()
[all …]
Ddistance_ca_pl_ar.cpp33 namespace services = bg::strategy::distance::services;
36 typedef bg::strategy::distance::pythagoras<> point_point_strategy;
37 typedef bg::strategy::distance::projected_point<> point_segment_strategy;
38 typedef bg::strategy::distance::pythagoras_point_box<> point_box_strategy;
42 template <typename Strategy>
43 void test_distance_point_polygon(Strategy const& strategy) in test_distance_point_polygon() argument
53 10, 100, strategy); in test_distance_point_polygon()
57 2, 4, strategy); in test_distance_point_polygon()
61 0, 0, strategy); in test_distance_point_polygon()
66 5, 25, strategy); in test_distance_point_polygon()
[all …]
Ddistance_ca_ar_ar.cpp31 namespace services = bg::strategy::distance::services;
34 typedef bg::strategy::distance::projected_point<> point_segment_strategy;
35 typedef bg::strategy::distance::pythagoras_box_box<> box_box_strategy;
39 template <typename Strategy>
40 void test_distance_polygon_polygon(Strategy const& strategy) in test_distance_polygon_polygon() argument
50 10, 100, strategy); in test_distance_polygon_polygon()
54 0, 0, strategy); in test_distance_polygon_polygon()
58 0, 0, strategy); in test_distance_polygon_polygon()
63 4, 16, strategy); in test_distance_polygon_polygon()
68 template <typename Strategy>
[all …]
/third_party/boost/boost/geometry/algorithms/detail/distance/
Dpoint_to_geometry.hpp61 template <typename P1, typename P2, typename Strategy>
65 typename strategy::distance::services::return_type<Strategy, P1, P2>::type
66 apply(P1 const& p1, P2 const& p2, Strategy const& strategy) in apply()
68 boost::ignore_unused(strategy); in apply()
69 return strategy.apply(p1, p2); in apply()
79 typename Strategy
84 typedef typename strategy::distance::services::comparable_type
86 Strategy
95 typedef typename strategy::distance::services::return_type
97 Strategy,
[all …]
Dinterface.hpp58 typename Geometry1, typename Geometry2, typename Strategy,
63 Geometry1, Geometry2, Strategy,
67 : distance<Geometry2, Geometry1, Strategy, Tag2, Tag1, StrategyTag, false>
69 typedef typename strategy::distance::services::return_type
71 Strategy,
79 Strategy const& strategy) in apply()
83 Geometry2, Geometry1, Strategy, in apply()
86 >::apply(g2, g1, strategy); in apply()
98 template <typename Strategy>
102 static inline typename distance_result<Geometry1, Geometry2, Strategy>::type
[all …]
Dmultipoint_to_geometry.hpp38 template <typename MultiPoint1, typename MultiPoint2, typename Strategy>
41 typedef typename strategy::distance::services::return_type
43 Strategy,
50 Strategy const& strategy) in apply()
59 Strategy in apply()
63 strategy); in apply()
70 Strategy in apply()
74 strategy); in apply()
79 template <typename MultiPoint, typename Linear, typename Strategy>
82 typedef typename strategy::distance::services::return_type
[all …]
Dbackward_compatibility.hpp48 template<typename Point, typename Segment, typename Strategy>
51 static inline typename strategy::distance::services::return_type
53 Strategy,
57 apply(Point const& point, Segment const& segment, Strategy const& ) in apply()
63 Strategy in apply()
85 // Point-segment version 1, with point-point strategy
86 template <typename Point, typename Segment, typename Strategy>
89 Point, Segment, Strategy,
92 > : detail::distance::point_to_segment<Point, Segment, Strategy>
96 // Point-line version 1, where point-point strategy is specified
[all …]
/third_party/boost/libs/geometry/test/cs_undefined/
Ddistance.cpp18 bg::distance(g.pt, g.pt, bg::strategy::distance::pythagoras<>()); in test_main()
19 bg::distance(g.pt, g.pt, bg::strategy::distance::haversine<>()); in test_main()
20 bg::distance(g.pt, g.pt, bg::strategy::distance::geographic<>()); in test_main()
21 bg::distance(g.pt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main()
22 bg::distance(g.pt, g.mpt, bg::strategy::distance::haversine<>()); in test_main()
23 bg::distance(g.pt, g.mpt, bg::strategy::distance::geographic<>()); in test_main()
24 bg::distance(g.mpt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main()
25 bg::distance(g.mpt, g.mpt, bg::strategy::distance::haversine<>()); in test_main()
26 bg::distance(g.mpt, g.mpt, bg::strategy::distance::geographic<>()); in test_main()
27 bg::distance(g.pt, g.ls, bg::strategy::distance::projected_point<>()); in test_main()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/comparable_distance/
Dinterface.hpp39 template <typename Strategy>
44 typename comparable_distance_result<Geometry1, Geometry2, Strategy>::type
47 Strategy const& strategy) in apply()
49 typedef typename strategy::distance::services::comparable_type in apply()
51 Strategy in apply()
59 strategy::distance::services::get_comparable in apply()
61 Strategy in apply()
62 >::apply(strategy)); in apply()
78 typedef typename strategy::distance::services::comparable_type in apply()
103 template <typename Strategy>
[all …]
/third_party/boost/boost/geometry/algorithms/
Ddifference.hpp51 typename Strategy
57 Strategy const& strategy) in apply()
66 >::apply(geometry1, geometry2, robust_policy, out, strategy); in apply()
118 typename Strategy
124 Strategy const& strategy) in apply()
131 base_t::access::get(out), strategy); in apply()
157 typename Strategy
163 Strategy const& strategy) in apply()
185 \tparam Strategy \tparam_strategy_overlay
189 \param strategy \param_strategy{difference}
[all …]
Darea.hpp69 template <typename Box, typename Strategy>
71 apply(Box const& box, Strategy const&) in apply()
89 template <typename Ring, typename Strategy>
90 static inline typename area_result<Ring, Strategy>::type
91 apply(Ring const& ring, Strategy const& strategy) in apply()
93 BOOST_CONCEPT_ASSERT( (geometry::concepts::AreaStrategy<Ring, Strategy>) ); in apply()
96 // Ignore warning (because using static method sometimes) on strategy in apply()
97 boost::ignore_unused(strategy); in apply()
105 return typename area_result<Ring, Strategy>::type(); in apply()
117 typename Strategy::template state<Ring> state; in apply()
[all …]
Dcrosses.hpp70 template <typename Geometry1, typename Geometry2, typename Strategy>
73 Strategy const& strategy) in apply()
78 return dispatch::crosses<Geometry1, Geometry2>::apply(geometry1, geometry2, strategy); in apply()
86 typedef typename strategy::relate::services::default_strategy in apply()
104 template <typename Strategy>
107 Strategy const& strategy) in apply()
109 return resolve_strategy::crosses::apply(geometry1, geometry2, strategy); in apply()
117 template <typename Strategy>
121 Strategy const& m_strategy;
123 visitor(Geometry2 const& geometry2, Strategy const& strategy) in visitor()
[all …]
Dsym_difference.hpp53 typename Strategy
59 Strategy const& strategy) in apply()
75 >::apply(geometry1, geometry2, robust_policy, out, strategy); in apply()
88 typename Strategy
94 Strategy const& strategy) in apply()
99 >::apply(geometry1, geometry2, robust_policy, out, strategy); in apply()
104 >::apply(geometry2, geometry1, robust_policy, out, strategy); in apply()
116 typename Strategy
122 Strategy const& strategy) in apply()
137 >::apply(areal1, areal2, robust_policy, oit12, strategy); in apply()
[all …]
Dconvex_hull.hpp63 template <typename Geometry, typename OutputIterator, typename Strategy>
65 OutputIterator out, Strategy const& strategy) in apply()
67 typename Strategy::state_type state; in apply()
69 strategy.apply(geometry, state); in apply()
70 strategy.result(state, out, Order == clockwise, Closure != open); in apply()
77 template <typename Geometry, typename OutputGeometry, typename Strategy>
79 Strategy const& strategy) in apply()
91 >(out)), strategy); in apply()
116 template <typename OutputGeometry, typename Strategy>
118 Strategy const& ) in apply()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/intersection/
Dinterface.hpp47 template <typename RobustPolicy, typename GeometryOut, typename Strategy>
52 Strategy const& strategy) in apply()
65 strategy); in apply()
87 template <typename RobustPolicy, typename GeometryOut, typename Strategy>
93 Strategy const& strategy) in apply()
100 >::apply(g2, g1, robust_policy, out, strategy); in apply()
118 typename Strategy
123 Strategy const& strategy) in apply()
129 typename Strategy::cs_tag in apply()
134 geometry1, geometry2, strategy); in apply()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/disjoint/
Dinterface.hpp46 template <typename Geometry1, typename Geometry2, typename Strategy>
49 Strategy const& strategy) in apply()
54 >::apply(geometry1, geometry2, strategy); in apply()
62 typedef typename strategy::disjoint::services::default_strategy in apply()
82 template <typename Strategy>
83 …inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2, Strategy const& strategy) in apply()
91 return resolve_strategy::disjoint::apply(geometry1, geometry2, strategy); in apply()
98 template <typename Strategy>
102 Strategy const& m_strategy;
104 visitor(Geometry2 const& geometry2, Strategy const& strategy) in visitor()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/covered_by/
Dinterface.hpp61 template <typename Geometry1, typename Geometry2, typename Strategy>
64 Strategy const& strategy) in apply()
66 concepts::within::check<Geometry1, Geometry2, Strategy>(); in apply()
73 strategy); in apply()
81 typedef typename strategy::covered_by::services::default_strategy in apply()
99 template <typename Strategy>
102 Strategy const& strategy) in apply()
105 ::apply(geometry1, geometry2, strategy); in apply()
112 template <typename Strategy>
116 Strategy const& m_strategy;
[all …]
/third_party/boost/boost/geometry/algorithms/detail/within/
Dinterface.hpp68 template <typename Geometry1, typename Geometry2, typename Strategy>
71 Strategy const& strategy) in apply()
73 concepts::within::check<Geometry1, Geometry2, Strategy>(); in apply()
75 return dispatch::within<Geometry1, Geometry2>::apply(geometry1, geometry2, strategy); in apply()
83 typedef typename strategy::within::services::default_strategy in apply()
102 template <typename Strategy>
105 Strategy const& strategy) in apply()
113 strategy); in apply()
120 template <typename Strategy>
124 Strategy const& m_strategy;
[all …]
Dpoint_in_geometry.hpp48 template <typename Point1, typename Point2, typename Strategy>
49 inline bool equals_point_point(Point1 const& p1, Point2 const& p2, Strategy const& strategy) in equals_point_point() argument
51 return equals::equals_point_point(p1, p2, strategy.get_equals_point_point_strategy()); in equals_point_point()
67 template <typename Point, typename Range, typename Strategy> inline
68 int point_in_range(Point const& point, Range const& range, Strategy const& strategy) in point_in_range() argument
70 boost::ignore_unused(strategy); in point_in_range()
73 typename Strategy::state_type state; in point_in_range()
79 if ( ! strategy.apply(point, *previous, *it, state) ) in point_in_range()
85 return check_result_type(strategy.result(state)); in point_in_range()
91 typedef typename strategy::point_in_geometry::services::default_strategy in point_in_range()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/closest_feature/
Dpoint_to_range.hpp38 typename Strategy
49 Strategy const& strategy, in apply() argument
63 dist_min = strategy.apply(point, *first, *first); in apply()
68 dist_min = strategy.apply(point, *prev, *it); in apply()
74 Distance const dist = strategy.apply(point, *prev, *it); in apply()
103 Strategy const& strategy, in apply() argument
107 apply(point, first, last, strategy, it_min1, it_min2, dist_min); in apply()
115 Strategy const& strategy) in apply() argument
117 typename strategy::distance::services::return_type in apply()
119 Strategy, in apply()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/relation/
Dinterface.hpp44 template <typename Matrix, typename Strategy>
47 Strategy const& strategy) in apply()
60 resolve_strategy::relate::apply(geometry1, geometry2, handler, strategy); in apply()
69 template <typename Matrix, typename Strategy>
73 Strategy const& m_strategy;
75 visitor(Geometry2 const& geometry2, Strategy const& strategy) in visitor()
76 : m_geometry2(geometry2), m_strategy(strategy) {} in visitor()
86 template <typename Matrix, typename Strategy>
90 Strategy const& strategy) in apply()
92 return boost::apply_visitor(visitor<Matrix, Strategy>(geometry2, strategy), geometry1); in apply()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/equals/
Dinterface.hpp75 template <typename Strategy>
76 static inline bool apply(Geometry1 const& g1, Geometry2 const& g2, Strategy const& strategy) in apply()
85 >::apply(g2, g1, strategy); in apply()
99 template <typename Geometry1, typename Geometry2, typename Strategy>
102 Strategy const& strategy) in apply()
107 >::apply(geometry1, geometry2, strategy); in apply()
115 typedef typename strategy::relate::services::default_strategy in apply()
136 template <typename Strategy>
139 Strategy const& strategy) in apply()
148 ::apply(geometry1, geometry2, strategy); in apply()
[all …]

12345678910>>...91