ring.qbk 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
  6. Use, modification and distribution is subject to the Boost Software License,
  7. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. http://www.boost.org/LICENSE_1_0.txt)
  9. =============================================================================/]
  10. [/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
  11. [/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1model_1_1ring.xml]
  12. [section:model_ring model::ring]
  13. '''<indexterm><primary>model</primary></indexterm><indexterm><primary>ring</primary></indexterm>'''
  14. A ring (aka linear ring) is a closed line which should not be selfintersecting.
  15. [heading Model of]
  16. [link geometry.reference.concepts.concept_ring Ring Concept]
  17. [heading Synopsis]
  18. ``template<typename Point, bool ClockWise, bool Closed, template< typename, typename > class Container,
  19. template< typename > class Allocator>
  20. class model::ring
  21. : public Container< Point, Allocator< Point > >
  22. {
  23. // ...
  24. };
  25. ``
  26. [heading Template parameter(s)]
  27. [table
  28. [[Parameter] [Default] [Description]]
  29. [[typename Point] [] [point type ]]
  30. [[bool ClockWise] [true] [true for clockwise direction, false for CounterClockWise direction ]]
  31. [[bool Closed] [true] [true for closed polygons (last point == first point), false open points ]]
  32. [[template< typename, typename > class Container] [std::vector] [container type, for example std::vector, std::deque ]]
  33. [[template< typename > class Allocator] [std::allocator] [container-allocator-type]]
  34. ]
  35. [heading Constructor(s)]
  36. [table
  37. [[Function] [Description] [Parameters] ]
  38. [[``ring()``
  39. ] [Default constructor, creating an empty ring. ] [
  40. ]]
  41. [[``template<typename Iterator>
  42. ring(Iterator begin, Iterator end)``
  43. ] [Constructor with begin and end, filling the ring. ] [[* Iterator]: ['begin]:
  44. [* Iterator]: ['end]:
  45. ]]
  46. [[``ring(std::initializer_list< Point > l)``
  47. ] [Constructor taking std::initializer_list, filling the ring. ] [[* std::initializer_list< Point >]: ['l]:
  48. ]]
  49. ]
  50. [heading Header]
  51. Either
  52. `#include <boost/geometry/geometries/geometries.hpp>`
  53. Or
  54. `#include <boost/geometry/geometries/ring.hpp>`
  55. [include reference/geometries/ring.qbk]
  56. [endsect]