ring
concept
More...
Detailed Description
template<typename Geometry>
class boost::geometry::concept::Ring< Geometry >
ring
concept
- Formal definition:
- The ring concept is defined as following:
- there must be a specialization of traits::tag defining ring_tag as type
- it must behave like a Boost.Range
- there can optionally be a specialization of traits::point_order defining the order or orientation of its points, clockwise or counterclockwise.
- either it can behave like the std library, having pushback
- or it can implement a mechanism for clearing and adding points. This is the same as the for the concept Linestring, and described there.
- Note:
- to fulfil the concepts, no traits class has to be specialized to define the point type. The point type is taken using boost::range_value<X>::type
Definition at line 47 of file ring_concept.hpp.