123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef BOOST_GEOMETRY_STRATEGIES_CONCEPTS_SEGMENT_INTERSECT_CONCEPT_HPP
- #define BOOST_GEOMETRY_STRATEGIES_CONCEPTS_SEGMENT_INTERSECT_CONCEPT_HPP
- #include <boost/concept_check.hpp>
- namespace boost { namespace geometry { namespace concepts
- {
- template <typename Strategy>
- class SegmentIntersectStrategy
- {
- #ifndef DOXYGEN_NO_CONCEPT_MEMBERS
-
- typedef typename Strategy::return_type return_type;
-
-
-
- typedef typename Strategy::segment_type1 segment_type1;
- typedef typename Strategy::segment_type2 segment_type2;
- struct check_methods
- {
- static void apply()
- {
- Strategy const* str;
- return_type* rt;
-
- segment_type1 const* s1;
- segment_type2 const* s2;
-
-
- *rt = str->apply(*s1, *s2);
- }
- };
- public :
- BOOST_CONCEPT_USAGE(SegmentIntersectStrategy)
- {
- check_methods::apply();
- }
- #endif
- };
- }}}
- #endif
|