Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5035839f674c88dea1f7928a86fbdc64 > files > 1397

geos-devel-3.2.1-3.fc14.x86_64.rpm

<!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: Edge.h Source File</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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>Edge.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/**********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * $Id: Edge.h 2556 2009-06-06 22:22:28Z strk $</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * GEOS - Geometry Engine Open Source</span>
<a name="l00005"></a>00005 <span class="comment"> * http://geos.refractions.net</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span>
<a name="l00008"></a>00008 <span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This is free software; you can redistribute and/or modify it under</span>
<a name="l00011"></a>00011 <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span>
<a name="l00012"></a>00012 <span class="comment"> * by the Free Software Foundation. </span>
<a name="l00013"></a>00013 <span class="comment"> * See the COPYING file for more information.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> **********************************************************************/</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef GEOS_PLANARGRAPH_EDGE_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define GEOS_PLANARGRAPH_EDGE_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;geos/export.h&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;geos/planargraph/GraphComponent.h&gt;</span> <span class="comment">// for inheritance</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;vector&gt;</span> <span class="comment">// for typedefs</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;set&gt;</span> <span class="comment">// for typedefs</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;iosfwd&gt;</span> <span class="comment">// ostream</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">// Forward declarations</span>
<a name="l00029"></a>00029 <span class="keyword">namespace </span>geos {
<a name="l00030"></a>00030         <span class="keyword">namespace </span>planargraph { 
<a name="l00031"></a>00031                 <span class="keyword">class </span>DirectedEdgeStar;
<a name="l00032"></a>00032                 <span class="keyword">class </span>DirectedEdge;
<a name="l00033"></a>00033                 <span class="keyword">class </span>Edge;
<a name="l00034"></a>00034                 <span class="keyword">class </span>Node;
<a name="l00035"></a>00035         }
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">namespace </span>geos {
<a name="l00039"></a>00039 <span class="keyword">namespace </span>planargraph { <span class="comment">// geos.planargraph</span>
<a name="l00040"></a>00040 
<a name="l00050"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html">00050</a> <span class="keyword">class </span>GEOS_DLL <a class="code" href="classgeos_1_1planargraph_1_1Edge.html" title="Represents an undirected edge of a PlanarGraph.">Edge</a>: <span class="keyword">public</span> <a class="code" href="classgeos_1_1planargraph_1_1GraphComponent.html" title="The base class for all graph component classes.">GraphComponent</a> {
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a>00053 
<a name="l00054"></a>00054         <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="namespacegeos_1_1planargraph.html#a4288e7e185a32c17eec042b220e12966" title="Print a Edge.">operator&lt;&lt; </a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>&amp;);
<a name="l00055"></a>00055 
<a name="l00057"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a4750ca80bebe5b3cf1b19089c8d88214">00057</a>         <span class="keyword">typedef</span> std::set&lt;const Edge *&gt; ConstSet;
<a name="l00058"></a>00058 
<a name="l00060"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a36392eaf78cad7831714df3cba496fc8">00060</a>         <span class="keyword">typedef</span> std::set&lt;Edge *&gt; NonConstSet;
<a name="l00061"></a>00061 
<a name="l00063"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#aceb74932b81d8e025ae78857e1dbe86f">00063</a>         <span class="keyword">typedef</span> std::vector&lt;Edge *&gt; NonConstVect;
<a name="l00064"></a>00064 
<a name="l00066"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a1bdb3e096dd35b2ec8782d1005050983">00066</a>         <span class="keyword">typedef</span> std::vector&lt;const Edge *&gt; ConstVect;
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="keyword">protected</span>:
<a name="l00069"></a>00069 
<a name="l00071"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#acaf53e9bdd2ef9f55631bef0cf0c0408">00071</a>         std::vector&lt;DirectedEdge*&gt; dirEdge;
<a name="l00072"></a>00072 
<a name="l00079"></a>00079 <span class="keyword">public</span>:
<a name="l00080"></a>00080 
<a name="l00088"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a3af12e9de07e5cbe721b6cb6f20aaaf6">00088</a>         <a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a3af12e9de07e5cbe721b6cb6f20aaaf6" title="Constructs an Edge whose DirectedEdges are not yet set.">Edge</a>(): dirEdge() {}
<a name="l00089"></a>00089 
<a name="l00096"></a><a class="code" href="classgeos_1_1planargraph_1_1Edge.html#a4532f3aaca8325463252fbe8e1026cca">00096</a>         <a class="code" href="classgeos_1_1planargraph_1_1Edge.html" title="Represents an undirected edge of a PlanarGraph.">Edge</a>(<a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a> *de0, <a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a> *de1)
<a name="l00097"></a>00097                 :
<a name="l00098"></a>00098                 dirEdge()
<a name="l00099"></a>00099         {
<a name="l00100"></a>00100                 setDirectedEdges(de0, de1);
<a name="l00101"></a>00101         }
<a name="l00102"></a>00102 
<a name="l00110"></a>00110         <span class="keywordtype">void</span> setDirectedEdges(<a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a> *de0, <a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a> *de1);
<a name="l00111"></a>00111 
<a name="l00116"></a>00116         <a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a>* getDirEdge(<span class="keywordtype">int</span> i);
<a name="l00117"></a>00117 
<a name="l00123"></a>00123         <a class="code" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a>* getDirEdge(<a class="code" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> *fromNode);
<a name="l00124"></a>00124 
<a name="l00129"></a>00129         <a class="code" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>* getOppositeNode(<a class="code" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> *node);
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131 
<a name="l00133"></a>00133 std::ostream&amp; <a class="code" href="namespacegeos_1_1planargraph.html#a4288e7e185a32c17eec042b220e12966" title="Print a Edge.">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> Edge&amp; n); 
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 
<a name="l00138"></a>00138 <span class="comment">//typedef Edge planarEdge;</span>
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 } <span class="comment">// namespace geos::planargraph</span>
<a name="l00141"></a>00141 } <span class="comment">// namespace geos</span>
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="preprocessor">#endif // GEOS_PLANARGRAPH_EDGE_H</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
<a name="l00145"></a>00145 <span class="comment">/**********************************************************************</span>
<a name="l00146"></a>00146 <span class="comment"> * $Log$</span>
<a name="l00147"></a>00147 <span class="comment"> * Revision 1.1  2006/03/21 21:42:54  strk</span>
<a name="l00148"></a>00148 <span class="comment"> * planargraph.h header split, planargraph:: classes renamed to match JTS symbols</span>
<a name="l00149"></a>00149 <span class="comment"> *</span>
<a name="l00150"></a>00150 <span class="comment"> **********************************************************************/</span>
<a name="l00151"></a>00151 
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>