geos_390_docs/classgeos_1_1planargraph_1_...

349 lines
19 KiB
HTML

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GEOS: geos::planargraph::algorithm::ConnectedSubgraphFinder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1planargraph.html">planargraph</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1planargraph_1_1algorithm.html">algorithm</a></li><li class="navelem"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::planargraph::algorithm::ConnectedSubgraphFinder Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Finds all connected <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a>s of a <a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html" title="Represents a directed graph which is embeddable in a planar surface. ">PlanarGraph</a>.
<a href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="ConnectedSubgraphFinder_8h_source.html">ConnectedSubgraphFinder.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::planargraph::algorithm::ConnectedSubgraphFinder:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder__coll__graph.svg" width="234" height="287"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:addfdfce876eeb80e5da80256aebdcf20"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#addfdfce876eeb80e5da80256aebdcf20">ConnectedSubgraphFinder</a> (<a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html">PlanarGraph</a> &amp;newGraph)</td></tr>
<tr class="separator:addfdfce876eeb80e5da80256aebdcf20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48753ba52fbe3f160bdc30c6a4e80a28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#a48753ba52fbe3f160bdc30c6a4e80a28">getConnectedSubgraphs</a> (std::vector&lt; <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> * &gt; &amp;dest)</td></tr>
<tr class="memdesc:a48753ba52fbe3f160bdc30c6a4e80a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store newly allocated connected Subgraphs into the given std::vector. <a href="#a48753ba52fbe3f160bdc30c6a4e80a28">More...</a><br /></td></tr>
<tr class="separator:a48753ba52fbe3f160bdc30c6a4e80a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aac0c5ddcd5f4949e4a60767a81669e82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#aac0c5ddcd5f4949e4a60767a81669e82">findSubgraph</a> (<a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *node)</td></tr>
<tr class="memdesc:aac0c5ddcd5f4949e4a60767a81669e82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a newly allocated <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html" title="A subgraph of a PlanarGraph. ">Subgraph</a>. <a href="#aac0c5ddcd5f4949e4a60767a81669e82">More...</a><br /></td></tr>
<tr class="separator:aac0c5ddcd5f4949e4a60767a81669e82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5238dcaf45e0d6fd7dfe7f5b2f692bb3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#a5238dcaf45e0d6fd7dfe7f5b2f692bb3">addReachable</a> (<a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *node, <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> *subgraph)</td></tr>
<tr class="separator:a5238dcaf45e0d6fd7dfe7f5b2f692bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11dfe070b12336dd19bcf8d48e6d3dc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#a11dfe070b12336dd19bcf8d48e6d3dc5">addEdges</a> (<a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *node, std::stack&lt; <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * &gt; &amp;nodeStack, <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> *subgraph)</td></tr>
<tr class="separator:a11dfe070b12336dd19bcf8d48e6d3dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68abf7ca270f1acee030835d019104e9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#a68abf7ca270f1acee030835d019104e9">ConnectedSubgraphFinder</a> (const <a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a> &amp;other)=delete</td></tr>
<tr class="separator:a68abf7ca270f1acee030835d019104e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed96240a124052b07c774a82a15e2485"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#aed96240a124052b07c774a82a15e2485">operator=</a> (const <a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a> &amp;rhs)=delete</td></tr>
<tr class="separator:aed96240a124052b07c774a82a15e2485"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a147e5829db4016ea1c9a72cb929e4d65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html">PlanarGraph</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html#a147e5829db4016ea1c9a72cb929e4d65">graph</a></td></tr>
<tr class="separator:a147e5829db4016ea1c9a72cb929e4d65"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Finds all connected <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a>s of a <a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html" title="Represents a directed graph which is embeddable in a planar surface. ">PlanarGraph</a>. </p>
<p><b>Note:</b> uses the <code>isVisited</code> flag on the nodes. </p>
<p>Definition at line <a class="el" href="ConnectedSubgraphFinder_8h_source.html#l00043">43</a> of file <a class="el" href="ConnectedSubgraphFinder_8h_source.html">ConnectedSubgraphFinder.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="addfdfce876eeb80e5da80256aebdcf20"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::planargraph::algorithm::ConnectedSubgraphFinder::ConnectedSubgraphFinder </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html">PlanarGraph</a> &amp;&#160;</td>
<td class="paramname"><em>newGraph</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="ConnectedSubgraphFinder_8h_source.html#l00046">46</a> of file <a class="el" href="ConnectedSubgraphFinder_8h_source.html">ConnectedSubgraphFinder.h</a>.</p>
</div>
</div>
<a class="anchor" id="a68abf7ca270f1acee030835d019104e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::planargraph::algorithm::ConnectedSubgraphFinder::ConnectedSubgraphFinder </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a11dfe070b12336dd19bcf8d48e6d3dc5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::planargraph::algorithm::ConnectedSubgraphFinder::addEdges </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *&#160;</td>
<td class="paramname"><em>node</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::stack&lt; <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>nodeStack</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> *&#160;</td>
<td class="paramname"><em>subgraph</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds the argument node and all its out edges to the subgraph. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>the node to add </td></tr>
<tr><td class="paramname">nodeStack</td><td>the current set of nodes being traversed </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5238dcaf45e0d6fd7dfe7f5b2f692bb3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::planargraph::algorithm::ConnectedSubgraphFinder::addReachable </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *&#160;</td>
<td class="paramname"><em>node</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> *&#160;</td>
<td class="paramname"><em>subgraph</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds all nodes and edges reachable from this node to the subgraph. Uses an explicit stack to avoid a large depth of recursion.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>a node known to be in the subgraph </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aac0c5ddcd5f4949e4a60767a81669e82"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a>* geos::planargraph::algorithm::ConnectedSubgraphFinder::findSubgraph </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a newly allocated <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html" title="A subgraph of a PlanarGraph. ">Subgraph</a>. </p>
</div>
</div>
<a class="anchor" id="a48753ba52fbe3f160bdc30c6a4e80a28"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void geos::planargraph::algorithm::ConnectedSubgraphFinder::getConnectedSubgraphs </td>
<td>(</td>
<td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1planargraph_1_1Subgraph.html">Subgraph</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>dest</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Store newly allocated connected Subgraphs into the given std::vector. </p>
<p>Caller take responsibility in releasing memory associated with the subgraphs themself. </p>
</div>
</div>
<a class="anchor" id="aed96240a124052b07c774a82a15e2485"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a>&amp; geos::planargraph::algorithm::ConnectedSubgraphFinder::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1planargraph_1_1algorithm_1_1ConnectedSubgraphFinder.html">ConnectedSubgraphFinder</a> &amp;&#160;</td>
<td class="paramname"><em>rhs</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a147e5829db4016ea1c9a72cb929e4d65"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html">PlanarGraph</a>&amp; geos::planargraph::algorithm::ConnectedSubgraphFinder::graph</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="ConnectedSubgraphFinder_8h_source.html#l00063">63</a> of file <a class="el" href="ConnectedSubgraphFinder_8h_source.html">ConnectedSubgraphFinder.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ConnectedSubgraphFinder_8h_source.html">ConnectedSubgraphFinder.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>