Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/graph/doc/astar_heuristic.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 2.4 KB
Line 
1<HTML>
2<!--
3  -- Copyright (c) 2004 Kris Beevers
4  --
5  -- Permission to use, copy, modify, distribute and sell this software
6  -- and its documentation for any purpose is hereby granted without fee,
7  -- provided that the above copyright notice appears in all copies and
8  -- that both that copyright notice and this permission notice appear
9  -- in supporting documentation.  We make no
10  -- representations about the suitability of this software for any
11  -- purpose.  It is provided "as is" without express or implied warranty.
12  -->
13<Head>
14<Title>Boost Graph Library: astar_heuristic</Title>
15<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" 
16        ALINK="#ff0000"> 
17<IMG SRC="../../../boost.png" 
18     ALT="C++ Boost" width="277" height="86"> 
19
20<BR Clear>
21
22<H1>
23<pre>
24astar_heuristic&lt;Graph, CostType&gt;
25</pre>
26</H1>
27
28This class is a default implementation of the <a
29href="./AStarHeuristic.html">AStarHeuristic</a> concept.  It
30implements a "zero" heuristic -- a heuristic function that returns a
31cost of zero regardless of the vertex it is passed.
32
33<h3>Model of</h3>
34
35<a href="./AStarHeuristic.html">AStarHeuristic</a>
36
37<H3>Template Parameters</H3>
38
39<P>
40<TABLE border>
41<TR>
42<th>Parameter</th><th>Description</th><th>Default</th>
43</tr>
44
45<TR><TD><TT>Graph</TT></TD>
46<TD>
47The type of the graph being searched.
48</TD>
49<TD></TD>
50</TR>
51
52<TR><TD><TT>CostType</TT></TD>
53<TD>
54A type that can be used with the <tt>compare</tt> and
55<tt>combine</tt> functions passed to A*.  Typically an integer or
56floating point type.
57</TD>
58<TD></TD>
59</TR>
60
61</table>
62
63<H3>Where Defined</H3>
64
65<P>
66<a href="../../../boost/graph/astar_search.hpp">
67<TT>boost/graph/astar_search.hpp</TT></a>
68
69<h3>Member Functions</h3>
70
71This class implements the single member function required by <a
72href="./AStarHeuristic.html">AStarHeuristic</a>:
73
74<table border>
75<tr>
76<th>Function</th><th>Description</th>
77</tr>
78
79<tr><td><tt>
80CostType operator()(graph_traits&lt;Graph&gt;::vertex_descriptor u);
81</tt></td><td>
82Called for the target of every out edge of a vertex being examined.
83Returns the cost, estimated by the heuristic, from vertex <tt>u</tt>
84to a goal.
85</td></tr>
86
87</table>
88
89<br>
90<HR>
91<TABLE>
92<TR valign=top>
93<TD nowrap>Copyright &copy 2004</TD><TD>
94<A HREF="http://www.cs.rpi.edu/~beevek/">Kristopher Beevers</A>,
95Rensselaer Polytechnic Institute (<A
96HREF="mailto:beevek@cs.rpi.edu">beevek@cs.rpi.edu</A>)
97</TD></TR></TABLE>
98
99</BODY>
100</HTML> 
Note: See TracBrowser for help on using the repository browser.