<!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::planargraph::NodeMap 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_1planargraph.html">planargraph</a> </li> <li><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html">geos::planargraph::NodeMap</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> </div> <div class="headertitle"> <h1>geos::planargraph::NodeMap Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::planargraph::NodeMap" --> <p>A map of <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>, indexed by the coordinate of the node. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="planargraph_2NodeMap_8h_source.html">NodeMap.h</a>></code></p> <p><a href="classgeos_1_1planargraph_1_1NodeMap-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="a972626cf00c019d7413903a3c33ab2a9"></a><!-- doxytag: member="geos::planargraph::NodeMap::container" ref="a972626cf00c019d7413903a3c33ab2a9" args="" --> typedef std::map<br class="typebreak"/> < <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>, <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> <br class="typebreak"/> *, <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html">geom::CoordinateLessThen</a> > </td><td class="memItemRight" valign="bottom"><b>container</b></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="a5d601a01b78aa9d974f7ceeefc5a8225"></a><!-- doxytag: member="geos::planargraph::NodeMap::NodeMap" ref="a5d601a01b78aa9d974f7ceeefc5a8225" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#a5d601a01b78aa9d974f7ceeefc5a8225">NodeMap</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html" title="A map of Node, indexed by the coordinate of the node.">NodeMap</a> without any Nodes. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a075addb991dac97bdb152d33476bf268"></a><!-- doxytag: member="geos::planargraph::NodeMap::getNodeMap" ref="a075addb991dac97bdb152d33476bf268" args="()" --> container & </td><td class="memItemRight" valign="bottom"><b>getNodeMap</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#a25dfb6ef76f15e9480225e8dd54ed271">add</a> (<a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a node to the std::map, replacing any that is already at that location. <a href="#a25dfb6ef76f15e9480225e8dd54ed271"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53d790db16e50e747e0209eaf26de766"></a><!-- doxytag: member="geos::planargraph::NodeMap::remove" ref="a53d790db16e50e747e0209eaf26de766" args="(geom::Coordinate &pt)" --> <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#a53d790db16e50e747e0209eaf26de766">remove</a> (<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &pt)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> at the given location, and returns it (or null if no <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> was there). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99f3018a76d489041bed3a57f291255d"></a><!-- doxytag: member="geos::planargraph::NodeMap::find" ref="a99f3018a76d489041bed3a57f291255d" args="(const geom::Coordinate &coord)" --> <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#a99f3018a76d489041bed3a57f291255d">find</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &coord)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> at the given location, or null if no <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> was there. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae99ad66a6a8fb98066da25481f411c60"></a><!-- doxytag: member="geos::planargraph::NodeMap::iterator" ref="ae99ad66a6a8fb98066da25481f411c60" args="()" --> container::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#ae99ad66a6a8fb98066da25481f411c60">iterator</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an Iterator over the Nodes in this <a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html" title="A map of Node, indexed by the coordinate of the node.">NodeMap</a>, sorted in ascending order by angle with the positive x-axis. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21e663cf062025e0dca3cc8ad1f45c1f"></a><!-- doxytag: member="geos::planargraph::NodeMap::begin" ref="a21e663cf062025e0dca3cc8ad1f45c1f" args="()" --> container::iterator </td><td class="memItemRight" valign="bottom"><b>begin</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af85fee13e698bcf0ff3d789533639baa"></a><!-- doxytag: member="geos::planargraph::NodeMap::begin" ref="af85fee13e698bcf0ff3d789533639baa" args="() const " --> container::const_iterator </td><td class="memItemRight" valign="bottom"><b>begin</b> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4393a8bcaf47132ea90bfa6e3bc1b908"></a><!-- doxytag: member="geos::planargraph::NodeMap::end" ref="a4393a8bcaf47132ea90bfa6e3bc1b908" args="()" --> container::iterator </td><td class="memItemRight" valign="bottom"><b>end</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaad686aadba60d8b9950e987e685bfe0"></a><!-- doxytag: member="geos::planargraph::NodeMap::end" ref="aaad686aadba60d8b9950e987e685bfe0" args="() const " --> container::const_iterator </td><td class="memItemRight" valign="bottom"><b>end</b> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html#a470523a134670babebe642bbcc2e346f">getNodes</a> (std::vector< <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * > &nodes)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the Nodes in this <a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html" title="A map of Node, indexed by the coordinate of the node.">NodeMap</a>, sorted in ascending order by angle with the positive x-axis. <a href="#a470523a134670babebe642bbcc2e346f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A map of <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>, indexed by the coordinate of the node. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a25dfb6ef76f15e9480225e8dd54ed271"></a><!-- doxytag: member="geos::planargraph::NodeMap::add" ref="a25dfb6ef76f15e9480225e8dd54ed271" args="(Node *n)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a>* geos::planargraph::NodeMap::add </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td> <td class="paramname"> <em>n</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a node to the std::map, replacing any that is already at that location. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the added node </dd></dl> </div> </div> <a class="anchor" id="a470523a134670babebe642bbcc2e346f"></a><!-- doxytag: member="geos::planargraph::NodeMap::getNodes" ref="a470523a134670babebe642bbcc2e346f" args="(std::vector< Node * > &nodes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::planargraph::NodeMap::getNodes </td> <td>(</td> <td class="paramtype">std::vector< <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * > & </td> <td class="paramname"> <em>nodes</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the Nodes in this <a class="el" href="classgeos_1_1planargraph_1_1NodeMap.html" title="A map of Node, indexed by the coordinate of the node.">NodeMap</a>, sorted in ascending order by angle with the positive x-axis. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>nodes</em> </td><td>: the nodes are push_back'ed here </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="planargraph_2NodeMap_8h_source.html">planargraph/NodeMap.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>