📄 class_easylocal__movetester.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>EasyLocal++ Documentation</title>
<link href="local.css" rel="stylesheet" type="text/css">
</head>
<body lang="en">
<table width="100%" border="0">
<tbody>
<tr>
<td colspan="2"><h1 class="nojustify">EasyLocal++ Documentation</h1>
<hr>
</td>
</tr>
<tr>
<td width="30" align="center"> </td>
<td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 18:59:27 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center>
<hr><h1>easylocal::MoveTester Class Template Reference</h1><code>#include <<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>></code>
<p>
Inheritance diagram for easylocal::MoveTester<p><center><img src="class_easylocal__MoveTester_inherit_graph.gif" border="0" usemap="#easylocal::MoveTester_inherit_map" alt="Inheritance graph"></center>
<map name="easylocal::MoveTester_inherit_map">
<area href="class_easylocal__AbstractMoveTester.html" shape="rect" coords="0,0,307,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for easylocal::MoveTester:<p><center><img src="class_easylocal__MoveTester_coll_graph.gif" border="0" usemap="#easylocal::MoveTester_coll_map" alt="Collaboration graph"></center>
<map name="easylocal::MoveTester_coll_map">
<area href="class_easylocal__AbstractMoveTester.html" shape="rect" coords="321,4,628,22">
<area href="class_easylocal__StateManager.html" shape="rect" coords="0,108,227,126">
<area href="class_easylocal__NeighborhoodExplorer.html" shape="rect" coords="317,112,632,130">
<area href="class_easylocal__OutputManager.html" shape="rect" coords="335,172,615,190">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__MoveTester-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li><a class="el" href="class_easylocal__MoveTester.html#a0">MoveTester</a> (<a class="el" href="class_easylocal__StateManager.html">StateManager</a>< Input, State > *sm, <a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>< Input, Output, State > *om, <a class="el" href="class_easylocal__NeighborhoodExplorer.html">NeighborhoodExplorer</a>< Input, State, Move > *ne, std::string nm, Input *in=NULL)
<li>void <a class="el" href="class_easylocal__MoveTester.html#a1">RunTestMenu</a> (State &st)
<li>void <a class="el" href="class_easylocal__MoveTester.html#a2">SetInput</a> (Input *in)
</ul>
<h2>Protected Methods</h2>
<ul>
<li>void <a class="el" href="class_easylocal__MoveTester.html#b0">ShowMenu</a> ()
<li>void <a class="el" href="class_easylocal__MoveTester.html#b1">ExecuteChoice</a> (State &st)
</ul>
<h2>Protected Attributes</h2>
<ul>
<li><a class="el" href="class_easylocal__StateManager.html">StateManager</a><Input,State>* <a class="el" href="class_easylocal__MoveTester.html#n0">p_sm</a>
<li><a class="el" href="class_easylocal__NeighborhoodExplorer.html">NeighborhoodExplorer</a><Input,<br>
State,Move>* <a class="el" href="class_easylocal__MoveTester.html#n1">p_nhe</a>
<li><a class="el" href="class_easylocal__OutputManager.html">OutputManager</a><Input,Output,<br>
State>* <a class="el" href="class_easylocal__MoveTester.html#n2">p_om</a>
<li>Input* <a class="el" href="class_easylocal__MoveTester.html#n3">p_in</a>
<li>Output <a class="el" href="class_easylocal__MoveTester.html#n4">out</a>
<li>int <a class="el" href="class_easylocal__MoveTester.html#n5">choice</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<class Input, class Output, class State, class Move> class easylocal::MoveTester</h3>
A Move <a class="el" href="class_easylocal__Tester.html">Tester</a> allows to test the behavior of a given neighborhood explorer.
<p>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00990">990</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="easylocal::MoveTester::MoveTester"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template<class Input, class Output, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
easylocal::MoveTester< Input, Output, State, Move >::MoveTester<Input, Output, State, Move> (
</b></td>
<td valign="bottom"><b>
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>< Input, State > * <em>sm</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>< Input, Output, State > * <em>om</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="class_easylocal__NeighborhoodExplorer.html">NeighborhoodExplorer</a>< Input, State, Move > * <em>ne</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
std::string <em>nm</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
Input * <em>in</em> = NULL )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructs a move tester by providing it links to a state manager, an output manager, a neighborhood explorer, a name and an input object.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>sm</em>
</td><td>
a pointer to a compatible state manager </td></tr>
<tr><td valign=top><em>om</em>
</td><td>
a pointer to a compatible output manager </td></tr>
<tr><td valign=top><em>ne</em>
</td><td>
a pointer to a compatible neighborhood explorer </td></tr>
<tr><td valign=top><em>nm</em>
</td><td>
the name of the move tester </td></tr>
<tr><td valign=top><em>in</em>
</td><td>
a pointer to an input object </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02037">2037</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="b1" doxytag="easylocal::MoveTester::ExecuteChoice"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template<class Input, class Output, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::MoveTester< Input, Output, State, Move >::ExecuteChoice (
</b></td>
<td valign="bottom"><b>
State & <em>st</em> )<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Execute the menu choice on the given state.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the current state </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02111">2111</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l02067">RunTestMenu</a>(). </td>
</tr>
</table>
<a name="a1" doxytag="easylocal::MoveTester::RunTestMenu"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template<class Input, class Output, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::MoveTester< Input, Output, State, Move >::RunTestMenu (
</b></td>
<td valign="bottom"><b>
State & <em>st</em> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Manages the move tester menu for the given state.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the state to test </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__AbstractMoveTester.html#a3">easylocal::AbstractMoveTester</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02067">2067</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a2" doxytag="easylocal::MoveTester::SetInput"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template<class Input, class Output, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::MoveTester< Input, Output, State, Move >::SetInput (
</b></td>
<td valign="bottom"><b>
Input * <em>in</em> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -