⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_easylocal__statetester.html

📁 一个tabu search算法框架
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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">&nbsp;</td>
      <td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 18:59:36 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>easylocal::StateTester  Class Template Reference</h1><code>#include &lt;<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>&gt;</code>
<p>
Collaboration diagram for easylocal::StateTester:<p><center><img src="class_easylocal__StateTester_coll_graph.gif" border="0" usemap="#easylocal::StateTester_coll_map" alt="Collaboration graph"></center>
<map name="easylocal::StateTester_coll_map">
<area href="class_easylocal__StateManager.html" shape="rect" coords="0,0,227,19">
<area href="class_easylocal__OutputManager.html" shape="rect" coords="113,83,393,101">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__StateTester-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li><a class="el" href="class_easylocal__StateTester.html#a0">StateTester</a> (<a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt; Input, State &gt; *s, <a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt; Input, Output, State &gt; *o, Input *in=NULL)
<li>virtual <a class="el" href="class_easylocal__StateTester.html#a1">~StateTester</a> ()
<li>void <a class="el" href="class_easylocal__StateTester.html#a2">RunTestMenu</a> (State &amp;s)
<li>void <a class="el" href="class_easylocal__StateTester.html#a3">RunInputMenu</a> (State &amp;s)
<li>void <a class="el" href="class_easylocal__StateTester.html#a4">SetInput</a> (Input *in)
</ul>
<h2>Protected Methods</h2>
<ul>
<li>void <a class="el" href="class_easylocal__StateTester.html#b0">ShowMenu</a> ()
<li>void <a class="el" href="class_easylocal__StateTester.html#b1">ShowReducedMenu</a> ()
<li>void <a class="el" href="class_easylocal__StateTester.html#b2">ExecuteChoice</a> (State &amp;st)
</ul>
<h2>Protected Attributes</h2>
<ul>
<li><a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt;Input,State&gt;* <a class="el" href="class_easylocal__StateTester.html#n0">p_sm</a>
<li><a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt;Input,Output,<br>
State&gt;* <a class="el" href="class_easylocal__StateTester.html#n1">p_om</a>
<li>Input* <a class="el" href="class_easylocal__StateTester.html#n2">p_in</a>
<li>Output <a class="el" href="class_easylocal__StateTester.html#n3">out</a>
<li>int <a class="el" href="class_easylocal__StateTester.html#n4">choice</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class Input, class Output, class State&gt;  class easylocal::StateTester</h3>

The State <a class="el" href="class_easylocal__Tester.html">Tester</a> allows to test a State Manager. 
<p>

<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l01015">1015</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="easylocal::StateTester::StateTester"></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&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
easylocal::StateTester&lt; Input, Output, State &gt;::StateTester&lt;Input, Output, State&gt; (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt; Input, State &gt; * <em>s</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt; Input, Output, State &gt; * <em>o</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
Input * <em>in</em> = NULL&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs a state tester by providing it links to a state manager, an output manager, 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>
&nbsp;</td><td>
 a pointer to a compatible state manager </td></tr>
<tr><td valign=top><em>om</em>
&nbsp;</td><td>
 a pointer to a compatible output manager </td></tr>
<tr><td valign=top><em>in</em>
&nbsp;</td><td>
 a pointer to an input object </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02169">2169</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="easylocal::StateTester::~StateTester"></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&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
easylocal::StateTester&lt;Input, Output, State&gt;::~StateTester&lt;Input, Output, State&gt; (
          </b></td>
          <td valign="bottom"><b>
)<code> [inline, virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Virtual destructor. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l01021">1021</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="b2" doxytag="easylocal::StateTester::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&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::StateTester&lt; Input, Output, State &gt;::ExecuteChoice (
          </b></td>
          <td valign="bottom"><b>
State &amp; <em>st</em>&nbsp;)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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>
&nbsp;</td><td>
 the current state </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02266">2266</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#l02214">RunInputMenu</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l02194">RunTestMenu</a>().    </td>
  </tr>
</table>
<a name="a3" doxytag="easylocal::StateTester::RunInputMenu"></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&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::StateTester&lt; Input, Output, State &gt;::RunInputMenu (
          </b></td>
          <td valign="bottom"><b>
State &amp; <em>st</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Manages an adbridged menu for building the initial state. 
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02214">2214</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="easylocal::StateTester::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&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::StateTester&lt; Input, Output, State &gt;::RunTestMenu (
          </b></td>
          <td valign="bottom"><b>
State &amp; <em>st</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Manages the state 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>
&nbsp;</td><td>
 the state to test </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l02194">2194</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="easylocal::StateTester::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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -