📄 class_easylocal__outputmanager.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:30 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::OutputManager Class Template Reference</h1><code>#include <<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>></code>
<p>
Collaboration diagram for easylocal::OutputManager:<p><center><img src="class_easylocal__OutputManager_coll_graph.gif" border="0" usemap="#easylocal::OutputManager_coll_map" alt="Collaboration graph"></center>
<map name="easylocal::OutputManager_coll_map">
<area href="class_easylocal__StateManager.html" shape="rect" coords="0,0,227,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__OutputManager-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li>virtual void <a class="el" href="class_easylocal__OutputManager.html#a0">OutputState</a> (const State &st, Output &out) const=0
<li>virtual void <a class="el" href="class_easylocal__OutputManager.html#a1">InputState</a> (State &st, const Output &out) const=0
<li>virtual void <a class="el" href="class_easylocal__OutputManager.html#a2">ReadState</a> (State &st, std::istream &is) const
<li>virtual void <a class="el" href="class_easylocal__OutputManager.html#a3">WriteState</a> (const State &st, std::ostream &os) const
<li>virtual void <a class="el" href="class_easylocal__OutputManager.html#a4">Check</a> () const
<li>void <a class="el" href="class_easylocal__OutputManager.html#a5">SetInput</a> (Input *in)
<li>Input* <a class="el" href="class_easylocal__OutputManager.html#a6">GetInput</a> ()
</ul>
<h2>Protected Methods</h2>
<ul>
<li><a class="el" href="class_easylocal__OutputManager.html#b0">OutputManager</a> (<a class="el" href="class_easylocal__StateManager.html">StateManager</a>< Input, State > *sm, Input *in=NULL)
</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__OutputManager.html#n0">p_sm</a>
<li>Input* <a class="el" href="class_easylocal__OutputManager.html#n1">p_in</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<class Input, class Output, class State> class easylocal::OutputManager</h3>
The Output Manager is responsible for translating between elements of the search space and output solutions. It also delivers other output information of the search, and stores and retrieves solutions from files. This is the only helper that deals with the <code>Output</code> class. All other helpers work only on the <code>State</code> class, which represents the elements of the search space used by the algorithms.
<p>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00159">159</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a name="b0" doxytag="easylocal::OutputManager::OutputManager"></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::OutputManager<Input, Output, State>::OutputManager<Input, Output, State> (
</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>
Input * <em>in</em> = NULL )<code> [inline, protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructs an output manager by providing it a state 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 state 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="EasyLocal_h-source.html#l00181">181</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="a4" doxytag="easylocal::OutputManager::Check"></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::OutputManager< Input, Output, State >::Check (
</b></td>
<td valign="bottom"><b>
) const<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Checks wether the object state is consistent with all the related objects.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00234">234</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a6" doxytag="easylocal::OutputManager::GetInput"></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>
Input * easylocal::OutputManager< Input, Output, State >::GetInput (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns the input pointer which the object is attached to.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
the pointer to the input. </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00226">226</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a1" doxytag="easylocal::OutputManager::InputState"></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::OutputManager<Input, Output, State>::InputState (
</b></td>
<td valign="bottom"><b>
State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const Output & <em>out</em> ) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Transforms an output object in a state object. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the resulting state </td></tr>
<tr><td valign=top><em>out</em>
</td><td>
the output object to transform </td></tr>
</table>
</dl>
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00190">ReadState</a>(). </td>
</tr>
</table>
<a name="a0" doxytag="easylocal::OutputManager::OutputState"></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::OutputManager<Input, Output, State>::OutputState (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
Output & <em>out</em> ) const<code> [pure virtual]</code>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -