1 <?xml version='1.0' encoding='UTF-8' standalone='no'?>
2 <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
3 <compounddef id="group__clear" kind="group">
4 <compoundname>clear</compoundname>
5 <title>clear: clear geometries</title>
6 <sectiondef kind="func">
7 <memberdef kind="function" id="group__clear_1ga61147247703a55d2d81badbd7f0a12a9" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
10 <type>typename Geometry</type>
14 <definition>void boost::geometry::clear</definition>
15 <argsstring>(Geometry &geometry)</argsstring>
18 <type>Geometry &</type>
19 <declname>geometry</declname>
22 <para>Clears a linestring, ring or polygon (exterior+interiors) or multi*. </para> </briefdescription>
24 <para>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 .<ref refid="group__clear_1ga61147247703a55d2d81badbd7f0a12a9" kindref="member">clear()</ref> 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.</para><para><parameterlist kind="templateparam"><parameteritem>
26 <parametername>Geometry</parametername>
28 <parameterdescription>
29 <para>Any type fulfilling a Geometry Concept </para></parameterdescription>
32 <parameterlist kind="param"><parameteritem>
34 <parametername>geometry</parametername>
36 <parameterdescription>
37 <para>A model of the specified concept which will be cleared </para></parameterdescription>
40 <simplesect kind="note"><para>points and boxes cannot be cleared, instead they can be set to zero by "assign_zero"</para></simplesect>
41 <qbk>[include reference/algorithms/clear.qbk]</qbk> </para> </detaileddescription>
44 <location file="/home/ubuntu/boost/boost/geometry/algorithms/clear.hpp" line="186" column="1" bodyfile="/home/ubuntu/boost/boost/geometry/algorithms/clear.hpp" bodystart="186" bodyend="191"/>
50 </detaileddescription>