📄 class_easylocal__statetester.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:36 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::StateTester Class Template Reference</h1><code>#include <<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>></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>< Input, State > *s, <a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>< Input, Output, State > *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 &s)
<li>void <a class="el" href="class_easylocal__StateTester.html#a3">RunInputMenu</a> (State &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 &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__StateTester.html#n0">p_sm</a>
<li><a class="el" href="class_easylocal__OutputManager.html">OutputManager</a><Input,Output,<br>
State>* <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<class Input, class Output, class State> 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 & 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<class Input, class Output, class State> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
easylocal::StateTester< Input, Output, State >::StateTester<Input, Output, State> (
</b></td>
<td valign="bottom"><b>
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>< Input, State > * <em>s</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>< Input, Output, State > * <em>o</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 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>
</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>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#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<class Input, class Output, class State> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
easylocal::StateTester<Input, Output, State>::~StateTester<Input, Output, State> (
</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>
</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<class Input, class Output, class State> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateTester< Input, Output, State >::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#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<class Input, class Output, class State> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateTester< Input, Output, State >::RunInputMenu (
</b></td>
<td valign="bottom"><b>
State & <em>st</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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<class Input, class Output, class State> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateTester< Input, Output, State >::RunTestMenu (
</b></td>
<td valign="bottom"><b>
State & <em>st</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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>
</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 + -