a00066.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: algorithm.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>algorithm.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">// algorithm.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: algorithm.h,v 1.14 2003/03/24 15:58:54 raitner Exp $</span>
  33. <a name="l00007"></a>00007
  34. <a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_ALGORITHM_H</span>
  35. <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_ALGORITHM_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/graph.h&gt;</span>
  39. <a name="l00013"></a>00013
  40. <a name="l00014"></a>00014 __GTL_BEGIN_NAMESPACE
  41. <a name="l00015"></a>00015
  42. <a name="l00022"></a><a class="code" href="a00001.html">00022</a> <span class="keyword">class </span>GTL_EXTERN <a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> {
  43. <a name="l00023"></a>00023 <span class="keyword">public</span>:
  44. <a name="l00039"></a>00039 <span class="keyword">enum</span> {
  45. <a name="l00040"></a><a class="code" href="a00001.html#f1a0078e153aa99c24f9bdf0d97f67105114c20e4a96a76b5de9f28bf15e282b">00040</a> GTL_OK = 1,
  46. <a name="l00041"></a><a class="code" href="a00001.html#f1a0078e153aa99c24f9bdf0d97f67106fcf574690bbd6cf710837a169510dd7">00041</a> GTL_ERROR = 0
  47. <a name="l00042"></a>00042 };
  48. <a name="l00043"></a>00043
  49. <a name="l00047"></a><a class="code" href="a00001.html#b79e1ddec2f2afdf4b36b10724db8b15">00047</a> <a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> () { };
  50. <a name="l00048"></a>00048
  51. <a name="l00052"></a><a class="code" href="a00001.html#dca9b1e7fa3afd914519a9dbb44e9fd5">00052</a> <span class="keyword">virtual</span> ~<a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> () { };
  52. <a name="l00053"></a>00053
  53. <a name="l00061"></a>00061 <span class="keyword">virtual</span> <span class="keywordtype">int</span> run (<a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>&amp; g) = 0;
  54. <a name="l00062"></a>00062
  55. <a name="l00074"></a>00074 <span class="keyword">virtual</span> <span class="keywordtype">int</span> check (<a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>&amp; g) = 0;
  56. <a name="l00075"></a>00075
  57. <a name="l00084"></a>00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span> reset () = 0;
  58. <a name="l00085"></a>00085 };
  59. <a name="l00086"></a>00086
  60. <a name="l00087"></a>00087 __GTL_END_NAMESPACE
  61. <a name="l00088"></a>00088
  62. <a name="l00089"></a>00089 <span class="preprocessor">#endif // GTL_ALGORITHM_H</span>
  63. <a name="l00090"></a>00090 <span class="preprocessor"></span>
  64. <a name="l00091"></a>00091 <span class="comment">//--------------------------------------------------------------------------</span>
  65. <a name="l00092"></a>00092 <span class="comment">// end of file</span>
  66. <a name="l00093"></a>00093 <span class="comment">//--------------------------------------------------------------------------</span>
  67. </pre></div> <p class="links">
  68. <a href="http://www.uni-passau.de/">University of Passau</a>
  69. &nbsp;-&nbsp;
  70. <a href="http://www.fmi.uni-passau.de/">FMI</a>
  71. &nbsp;-&nbsp;
  72. <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
  73. Computer Science</a>
  74. </p>
  75. <div class="copyright">
  76. Design &copy; 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>, University of Passau
  77. </div>
  78. </body>
  79. </html>