a00093.html 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  5. <title>GTL - Graph Template Library: node_map.h Source File</title>
  6. <link href="doxygen.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <body>
  9. <p class="links">
  10. <a href="../index.html">Home</a> |
  11. Documentation |
  12. <a href="../register.html">Download</a> |
  13. <a href="../platforms.html">Platforms</a> |
  14. <a href="../refer.html">Projects</a> |
  15. <a href="../lists.html">Mailing Lists</a> |
  16. <a href="../history.html">Version History</a>
  17. </p>
  18. <!-- Generated by Doxygen 1.5.3 -->
  19. <div class="tabs">
  20. <ul>
  21. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  22. <li><a href="classes.html"><span>Classes</span></a></li>
  23. <li class="current"><a href="files.html"><span>Files</span></a></li>
  24. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  25. </ul>
  26. </div>
  27. <h1>node_map.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==========================================================================</span>
  28. <a name="l00002"></a>00002 <span class="comment">//</span>
  29. <a name="l00003"></a>00003 <span class="comment">// node_map.h</span>
  30. <a name="l00004"></a>00004 <span class="comment">//</span>
  31. <a name="l00005"></a>00005 <span class="comment">//==========================================================================</span>
  32. <a name="l00006"></a>00006 <span class="comment">// $Id: node_map.h,v 1.8 2005/06/14 12:22:12 raitner Exp $</span>
  33. <a name="l00007"></a>00007
  34. <a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_NODE_MAP_H</span>
  35. <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_NODE_MAP_H</span>
  36. <a name="l00010"></a>00010 <span class="preprocessor"></span>
  37. <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;GTL/GTL.h&gt;</span>
  38. <a name="l00012"></a>00012 <span class="preprocessor">#include &lt;GTL/node.h&gt;</span>
  39. <a name="l00013"></a>00013 <span class="preprocessor">#include &lt;GTL/ne_map.h&gt;</span>
  40. <a name="l00014"></a>00014
  41. <a name="l00015"></a>00015 __GTL_BEGIN_NAMESPACE
  42. <a name="l00016"></a>00016
  43. <a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>;
  44. <a name="l00018"></a>00018
  45. <a name="l00052"></a>00052 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> Alloc = allocator&lt;T&gt; &gt;
  46. <a name="l00053"></a><a class="code" href="a00021.html">00053</a> <span class="keyword">class </span><a class="code" href="a00021.html" title="A specialized map with nodes as keys.">node_map</a> : <span class="keyword">public</span> <a class="code" href="a00019.html" title="Baseclass for node_map and edge_map.">ne_map</a>&lt;node, T, graph, Alloc&gt;
  47. <a name="l00054"></a>00054 {
  48. <a name="l00055"></a>00055 <span class="keyword">public</span>:
  49. <a name="l00056"></a>00056
  50. <a name="l00063"></a><a class="code" href="a00021.html#7a4c767f07f348d31a1004776485d17b">00063</a> <a class="code" href="a00021.html#7a4c767f07f348d31a1004776485d17b">node_map</a>() : <a class="code" href="a00019.html" title="Baseclass for node_map and edge_map.">ne_map</a>&lt;<a class="code" href="a00020.html" title="A node in a graph.">node</a>, T, <a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>, Alloc&gt;() {};
  51. <a name="l00064"></a>00064
  52. <a name="l00071"></a><a class="code" href="a00021.html#5bd24349e3a56379592889abbe4c6b09">00071</a> <span class="keyword">explicit</span> <a class="code" href="a00021.html#7a4c767f07f348d31a1004776485d17b">node_map</a>(<span class="keyword">const</span> <a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a> &amp;g, T t=T()) : <a class="code" href="a00019.html" title="Baseclass for node_map and edge_map.">ne_map</a>&lt;<a class="code" href="a00020.html" title="A node in a graph.">node</a>, T, <a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>, Alloc&gt;(g,t) {};
  53. <a name="l00072"></a>00072 };
  54. <a name="l00073"></a>00073
  55. <a name="l00074"></a>00074 __GTL_END_NAMESPACE
  56. <a name="l00075"></a>00075
  57. <a name="l00076"></a>00076 <span class="preprocessor">#endif // GTL_NODE_MAP_H</span>
  58. <a name="l00077"></a>00077 <span class="preprocessor"></span>
  59. <a name="l00078"></a>00078 <span class="comment">//--------------------------------------------------------------------------</span>
  60. <a name="l00079"></a>00079 <span class="comment">// end of file</span>
  61. <a name="l00080"></a>00080 <span class="comment">//--------------------------------------------------------------------------</span>
  62. </pre></div> <p class="links">
  63. <a href="http://www.uni-passau.de/">University of Passau</a>
  64. &nbsp;-&nbsp;
  65. <a href="http://www.fmi.uni-passau.de/">FMI</a>
  66. &nbsp;-&nbsp;
  67. <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
  68. Computer Science</a>
  69. </p>
  70. <div class="copyright">
  71. Design &copy; 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>, University of Passau
  72. </div>
  73. </body>
  74. </html>