Boost.Geometry    Boost C++ Libraries

boost::geometry::concept::Ring< Geometry > Class Template Reference
[geometry concepts: defines and checks concepts for geometries]

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.


December 1, 2009

Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam
Copyright © 2008-2009 Bruno Lalande, Paris
Copyright © 2009 Mateusz Loskot, Cadcorp, London
Documentation is generated by Doxygen