<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GEOS: geos::geom::GeometryList Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1geom.html">geom</a> </li> <li><a class="el" href="classgeos_1_1geom_1_1GeometryList.html">geos::geom::GeometryList</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::geom::GeometryList Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::GeometryList" --> <p>Manager of <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> pointers. Owns the Geometries. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="GeometryList_8h_source.html">GeometryList.h</a>></code></p> <p><a href="classgeos_1_1geom_1_1GeometryList-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada0cd5ff0d023ac687bf440dc8bf279d"></a><!-- doxytag: member="geos::geom::GeometryList::size_type" ref="ada0cd5ff0d023ac687bf440dc8bf279d" args="" --> typedef std::vector< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * ><br class="typebreak"/> ::size_type </td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef std::auto_ptr<br class="typebreak"/> < <a class="el" href="classgeos_1_1geom_1_1GeometryList.html">GeometryList</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#aba4dc5037b366c857f159f98cd2863c9">AutoPtr</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48676b6df7977d296c7344e984f1a62f"></a><!-- doxytag: member="geos::geom::GeometryList::add" ref="a48676b6df7977d296c7344e984f1a62f" args="(Geometry::AutoPtr geom)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#a48676b6df7977d296c7344e984f1a62f">add</a> (<a class="el" href="classgeos_1_1geom_1_1Geometry.html#ad1556305e4785746bc203b0b87132784">Geometry::AutoPtr</a> geom)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a geometry to the list (takes ownership). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac76c13f1f46ac06786295ac44f902ffc"></a><!-- doxytag: member="geos::geom::GeometryList::size" ref="ac76c13f1f46ac06786295ac44f902ffc" args="() const " --> size_type </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#ac76c13f1f46ac06786295ac44f902ffc">size</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return number of geometries in this list. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0db4448e48dae528a938548a50004c04"></a><!-- doxytag: member="geos::geom::GeometryList::operator[]" ref="a0db4448e48dae528a938548a50004c04" args="(size_type)" --> <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#a0db4448e48dae528a938548a50004c04">operator[]</a> (size_type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returned object lifetime is bound to <a class="el" href="classgeos_1_1geom_1_1GeometryList.html" title="Manager of Geometry pointers. Owns the Geometries.">GeometryList</a> lifetime. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17f4fd2d83d867eeb55a1506f96fc80f"></a><!-- doxytag: member="geos::geom::GeometryList::operator[]" ref="a17f4fd2d83d867eeb55a1506f96fc80f" args="(size_type) const " --> const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#a17f4fd2d83d867eeb55a1506f96fc80f">operator[]</a> (size_type) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returned object lifetime is bound to <a class="el" href="classgeos_1_1geom_1_1GeometryList.html" title="Manager of Geometry pointers. Owns the Geometries.">GeometryList</a> lifetime. <br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae90a7b8e1a3419a6e42522f3e97e99d9"></a><!-- doxytag: member="geos::geom::GeometryList::create" ref="ae90a7b8e1a3419a6e42522f3e97e99d9" args="()" --> static <a class="el" href="classgeos_1_1geom_1_1GeometryList.html#aba4dc5037b366c857f159f98cd2863c9">GeometryList::AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#ae90a7b8e1a3419a6e42522f3e97e99d9">create</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an empty <a class="el" href="classgeos_1_1geom_1_1GeometryList.html" title="Manager of Geometry pointers. Owns the Geometries.">GeometryList</a>. <br/></td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5839066fcb4e1d68267d72800f340c7c"></a><!-- doxytag: member="geos::geom::GeometryList::std::auto_ptr< GeometryList >" ref="a5839066fcb4e1d68267d72800f340c7c" args="" --> class </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#a5839066fcb4e1d68267d72800f340c7c">std::auto_ptr< GeometryList ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">auto_ptr needs to access private destructor <br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Manager of <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> pointers. Owns the Geometries. </p> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="aba4dc5037b366c857f159f98cd2863c9"></a><!-- doxytag: member="geos::geom::GeometryList::AutoPtr" ref="aba4dc5037b366c857f159f98cd2863c9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::auto_ptr<<a class="el" href="classgeos_1_1geom_1_1GeometryList.html">GeometryList</a>> <a class="el" href="classgeos_1_1geom_1_1GeometryList.html#aba4dc5037b366c857f159f98cd2863c9">geos::geom::GeometryList::AutoPtr</a></td> </tr> </table> </div> <div class="memdoc"> <p>Only way to manage a <a class="el" href="classgeos_1_1geom_1_1GeometryList.html" title="Manager of Geometry pointers. Owns the Geometries.">GeometryList</a> is trough this an auto_ptr<>. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classgeos_1_1geom_1_1GeometryList.html#ae90a7b8e1a3419a6e42522f3e97e99d9" title="Create an empty GeometryList.">create()</a> </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="GeometryList_8h_source.html">GeometryList.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>