1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef BOOST_GEOMETRY_STRATEGIES_CONCEPTS_CENTROID_CONCEPT_HPP
- #define BOOST_GEOMETRY_STRATEGIES_CONCEPTS_CENTROID_CONCEPT_HPP
- #include <boost/concept_check.hpp>
- #include <boost/core/ignore_unused.hpp>
- namespace boost { namespace geometry { namespace concepts
- {
- template <typename Strategy>
- class CentroidStrategy
- {
- #ifndef DOXYGEN_NO_CONCEPT_MEMBERS
-
- typedef typename Strategy::state_type state_type;
-
- typedef typename Strategy::point_type point_type;
-
- typedef typename Strategy::segment_point_type spoint_type;
- struct check_methods
- {
- static void apply()
- {
- Strategy *str = 0;
- state_type *st = 0;
-
-
- spoint_type const* sp = 0;
- str->apply(*sp, *sp, *st);
-
-
- point_type *c = 0;
- bool r = str->result(*st, *c);
- boost::ignore_unused(str, r);
- }
- };
- public :
- BOOST_CONCEPT_USAGE(CentroidStrategy)
- {
- check_methods::apply();
- }
- #endif
- };
- }}}
- #endif
|