1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef BOOST_GEOMETRY_STRATEGIES_CONCEPTS_CONVEX_HULL_CONCEPT_HPP
- #define BOOST_GEOMETRY_STRATEGIES_CONCEPTS_CONVEX_HULL_CONCEPT_HPP
- #include <vector>
- #include <boost/concept_check.hpp>
- namespace boost { namespace geometry { namespace concepts
- {
- template <typename Strategy>
- class ConvexHullStrategy
- {
- #ifndef DOXYGEN_NO_CONCEPT_MEMBERS
-
- typedef typename Strategy::state_type state_type;
-
- typedef typename Strategy::point_type point_type;
-
- typedef typename Strategy::geometry_type geometry_type;
- struct check_methods
- {
- static void apply()
- {
- Strategy const* str = 0;
- state_type* st = 0;
- geometry_type* sp = 0;
- std::vector<point_type> *v = 0;
-
- str->apply(*sp, *st);
-
- str->result(*st, std::back_inserter(*v), true, true);
- }
- };
- public :
- BOOST_CONCEPT_USAGE(ConvexHullStrategy)
- {
- check_methods::apply();
- }
- #endif
- };
- }}}
- #endif
|