TSPTourVisitor.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <HTML>
  2. <!--
  3. Copyright (c) Matyas Egyhazy 2008
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. -->
  8. <Head>
  9. <Title>Boost Graph Library: TSP Tour Visitor</Title>
  10. <BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
  11. ALINK="#ff0000">
  12. <IMG SRC="../../../boost.png"
  13. ALT="C++ Boost" width="277" height="86">
  14. <BR Clear>
  15. <H1>TSP Tour Visitor concept</H1>
  16. This concept defines the visitor interface for <a
  17. href="./metric_tsp_approx.html"><tt>metric_tsp_approx()</tt></a>
  18. and related algorithms. The user can create a class that matches this
  19. interface, and then pass objects of the class into
  20. <tt>metric_tsp_approx()</tt> to augment the actions taken during
  21. the search.
  22. <h3>Refinement of</h3>
  23. none
  24. <h3>Notation</h3>
  25. <Table>
  26. <TR>
  27. <TD><tt>V</tt></TD>
  28. <TD>A type that is a model of Dijkstra Visitor.</TD>
  29. </TR>
  30. <TR>
  31. <TD><tt>vis</tt></TD>
  32. <TD>An object of type <tt>V</tt>.</TD>
  33. </TR>
  34. <TR>
  35. <TD><tt>G</tt></TD>
  36. <TD>A type that is a model of Graph.</TD>
  37. </TR>
  38. <TR>
  39. <TD><tt>g</tt></TD>
  40. <TD>An object of type <tt>G</tt>.</TD>
  41. </TR>
  42. <TR>
  43. <TD><tt>v</tt></TD>
  44. <TD>An object of type <tt>boost::graph_traits&lt;G&gt;::vertex_descriptor</tt>.</TD>
  45. </TR>
  46. </table>
  47. <h3>Associated Types</h3>
  48. none
  49. <p>
  50. <h3>Valid Expressions</h3>
  51. <table border>
  52. <tr>
  53. <th>Name</th><th>Expression</th><th>Return Type</th><th>Description</th>
  54. </tr>
  55. <tr>
  56. <td>Visit Vertex</td>
  57. <td><tt>vis.visit_vertex(v, g)</tt></td>
  58. <td><tt>void</tt></td>
  59. <td>
  60. This is invoked on each vertex of the graph when it is visited as part of the TSP tour.
  61. </td>
  62. </tr>
  63. </table>
  64. <h3>Models</h3>
  65. <ul>
  66. <li><a href="tsp_tour_visitor.html"><tt>tsp_tour_visitor</tt></a>
  67. <li><a href="tsp_tour_len_visitor.html"><tt>tsp_tour_len_tsp_visitor</tt></a>
  68. </ul>
  69. <br>
  70. <HR>
  71. <TABLE>
  72. <TR valign=top>
  73. <TD nowrap>Copyright &copy; 2008</TD><TD>
  74. Matyas Egyhazy</TD></TR></TABLE>
  75. </BODY>
  76. </HTML>