3 Copyright (c) 2004 Kris Beevers
5 Distributed under the Boost Software License, Version 1.0.
6 (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
10 <Title>Boost Graph Library: astar_heuristic
</Title>
11 <BODY BGCOLOR=
"#ffffff" LINK=
"#0000ee" TEXT=
"#000000" VLINK=
"#551a8b"
13 <IMG SRC=
"../../../boost.png"
14 ALT=
"C++ Boost" width=
"277" height=
"86">
20 astar_heuristic
<Graph, CostType
>
24 This class is a default implementation of the
<a
25 href=
"./AStarHeuristic.html">AStarHeuristic
</a> concept. It
26 implements a
"zero" heuristic -- a heuristic function that returns a
27 cost of zero regardless of the vertex it is passed.
31 <a href=
"./AStarHeuristic.html">AStarHeuristic
</a>
33 <H3>Template Parameters
</H3>
38 <th>Parameter
</th><th>Description
</th><th>Default
</th>
41 <TR><TD><TT>Graph
</TT></TD>
43 The type of the graph being searched.
48 <TR><TD><TT>CostType
</TT></TD>
50 A type that can be used with the
<tt>compare
</tt> and
51 <tt>combine
</tt> functions passed to A*. Typically an integer or
59 <H3>Where Defined
</H3>
62 <a href=
"../../../boost/graph/astar_search.hpp">
63 <TT>boost/graph/astar_search.hpp
</TT></a>
65 <h3>Member Functions
</h3>
67 This class implements the single member function required by
<a
68 href=
"./AStarHeuristic.html">AStarHeuristic
</a>:
72 <th>Function
</th><th>Description
</th>
76 CostType operator()(graph_traits
<Graph
>::vertex_descriptor u);
78 Called for the target of every out edge of a vertex being examined.
79 Returns the cost, estimated by the heuristic, from vertex
<tt>u
</tt>
89 <TD nowrap
>Copyright
© 2004</TD><TD>
90 <A HREF=
"http://www.cs.rpi.edu/~beevek/">Kristopher Beevers
</A>,
91 Rensselaer Polytechnic Institute (
<A
92 HREF=
"mailto:beevek@cs.rpi.edu">beevek@cs.rpi.edu
</A>)