12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef BOOST_GEOMETRY_STRATEGIES_CONCEPTS_AREA_CONCEPT_HPP
- #define BOOST_GEOMETRY_STRATEGIES_CONCEPTS_AREA_CONCEPT_HPP
- #include <boost/concept_check.hpp>
- #include <boost/core/ignore_unused.hpp>
- #include <boost/geometry/geometries/point.hpp>
- namespace boost { namespace geometry { namespace concepts
- {
- template <typename Geometry, typename Strategy>
- class AreaStrategy
- {
- #ifndef DOXYGEN_NO_CONCEPT_MEMBERS
-
- typedef typename Strategy::template state<Geometry> state_type;
-
- typedef typename Strategy::template result_type<Geometry>::type return_type;
- struct check_methods
- {
- static void apply()
- {
- Strategy const* str = 0;
- state_type *st = 0;
-
- typename geometry::point_type<Geometry>::type const* sp = 0;
- str->apply(*sp, *sp, *st);
-
- return_type r = str->result(*st);
- boost::ignore_unused(r, str);
- }
- };
- public :
- BOOST_CONCEPT_USAGE(AreaStrategy)
- {
- check_methods::apply();
- }
- #endif
- };
- }}}
- #endif
|