clear.qbk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/group__clear.xml]
  12. [section:clear clear]
  13. '''<indexterm><primary>clear</primary></indexterm>'''
  14. Clears a linestring, ring or polygon (exterior+interiors) or multi*.
  15. [heading Description]
  16. Generic function to clear a geometry. All points will be removed from the collection or collections making up the geometry. In most cases this is equivalent to the .clear() method of a std::vector<...>. In the case of a polygon, this clear functionality is automatically called for the exterior ring, and for the interior ring collection. In the case of a point, boxes and segments, nothing will happen.
  17. [heading Synopsis]
  18. ``template<typename Geometry>
  19. void clear(Geometry & geometry)``
  20. [heading Parameters]
  21. [table
  22. [[Type] [Concept] [Name] [Description] ]
  23. [[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept which will be cleared ]]
  24. ]
  25. [heading Header]
  26. Either
  27. `#include <boost/geometry.hpp>`
  28. Or
  29. `#include <boost/geometry/algorithms/clear.hpp>`
  30. [include reference/algorithms/clear.qbk]
  31. [endsect]