Fast SAT Solver (C++, GAlib)
File detail
Source code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Fast SAT Solver: ProgressWatch Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="nav">
<a class="el" href="namespaceFastSatSolver.html">FastSatSolver</a>::<a class="el" href="classFastSatSolver_1_1ProgressWatch.html">ProgressWatch</a></div>
<h1>ProgressWatch Class Reference<br>
<small>
[<a class="el" href="group__SatSolver.html">SAT Solver</a>]</small>
</h1><!-- doxytag: class="FastSatSolver::ProgressWatch" --><!-- doxytag: inherits="FastSatSolver::IObserver" --><code>#include <<a class="el" href="SatSolverObserver_8h-source.html">SatSolverObserver.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for ProgressWatch:</div>
<div class="dynsection">
<p><center><img src="classFastSatSolver_1_1ProgressWatch__inherit__graph.png" border="0" usemap="#ProgressWatch__inherit__map" alt="Inheritance graph"></center>
<map name="ProgressWatch__inherit__map">
<area shape="rect" href="classFastSatSolver_1_1IObserver.html" title="Simple observer's base class." alt="" coords="21,5,109,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for ProgressWatch:</div>
<div class="dynsection">
<p><center><img src="classFastSatSolver_1_1ProgressWatch__coll__graph.png" border="0" usemap="#ProgressWatch__coll__map" alt="Collaboration graph"></center>
<map name="ProgressWatch__coll__map">
<area shape="rect" href="classFastSatSolver_1_1IObserver.html" title="Simple observer's base class." alt="" coords="72,277,160,304"><area shape="rect" href="structFastSatSolver_1_1ProgressWatch_1_1Private.html" title="Private" alt="" coords="184,277,253,304"><area shape="rect" href="classFastSatSolver_1_1AbstractProcess.html" title="Base class of simple multi-step process." alt="" coords="153,187,284,213"><area shape="rect" href="classFastSatSolver_1_1AbstractSubject.html" title="Simple subject's base class." alt="" coords="25,96,156,123"><area shape="rect" href="classFastSatSolver_1_1ISubject.html" title="Simple observer's subject base class." alt="" coords="5,5,80,32"><area shape="rect" href="structFastSatSolver_1_1AbstractSubject_1_1Private.html" title="Private" alt="" coords="104,5,173,32"><area shape="rect" href="classFastSatSolver_1_1IProcess.html" title="Continous process interface." alt="" coords="180,96,257,123"><area shape="rect" href="structFastSatSolver_1_1AbstractProcess_1_1Private.html" title="Private" alt="" coords="281,96,351,123"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classFastSatSolver_1_1ProgressWatch-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Observer which write out progress percentage when it is changed.
<p>Definition at line <a class="el" href="SatSolverObserver_8h-source.html#l00059">59</a> of file <a class="el" href="SatSolverObserver_8h-source.html">SatSolverObserver.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1ProgressWatch.html#41ab01b3b0a796939656e0a7f58a9895">ProgressWatch</a> (<a class="el" href="classFastSatSolver_1_1AbstractProcess.html">AbstractProcess</a> *process, int stepsTotal, std::ostream &streamTo)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1ProgressWatch.html#5c47526a1f7ded8f3bbd6fbee5c7c900">~ProgressWatch</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1ProgressWatch.html#7ff19734eb024bd6f3e2ad95647b1b27">notify</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event notification, usually called by object implementing <a class="el" href="classFastSatSolver_1_1ISubject.html" title="Simple observer's subject base class.">ISubject</a> interface. <a href="#7ff19734eb024bd6f3e2ad95647b1b27"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structFastSatSolver_1_1ProgressWatch_1_1Private.html">Private</a></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="41ab01b3b0a796939656e0a7f58a9895"></a><!-- doxytag: member="FastSatSolver::ProgressWatch::ProgressWatch" ref="41ab01b3b0a796939656e0a7f58a9895" args="(AbstractProcess *process, int stepsTotal, std::ostream &streamTo)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classFastSatSolver_1_1ProgressWatch.html">ProgressWatch</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classFastSatSolver_1_1AbstractProcess.html">AbstractProcess</a> * </td>
<td class="paramname"> <em>process</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>stepsTotal</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"> <em>streamTo</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>process</em> </td><td>Observed process. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>stepsTotal</em> </td><td>Count of steps corresponding to 100% of progress. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>streamTo</em> </td><td>Standard output stream to write to. </td></tr>
</table>
</dl>
<p>Definition at line <a class="el" href="SatSolverObserver_8cpp-source.html#l00170">170</a> of file <a class="el" href="SatSolverObserver_8cpp-source.html">SatSolverObserver.cpp</a>.</p>
<p>References <a class="el" href="SatSolverObserver_8cpp-source.html#l00165">ProgressWatch::Private::last</a>, <a class="el" href="SatSolverObserver_8cpp-source.html#l00163">ProgressWatch::Private::process</a>, and <a class="el" href="SatSolverObserver_8cpp-source.html#l00164">ProgressWatch::Private::stepsTotal</a>.</p>
</div>
</div><p>
<a class="anchor" name="5c47526a1f7ded8f3bbd6fbee5c7c900"></a><!-- doxytag: member="FastSatSolver::ProgressWatch::~ProgressWatch" ref="5c47526a1f7ded8f3bbd6fbee5c7c900" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">~<a class="el" href="classFastSatSolver_1_1ProgressWatch.html">ProgressWatch</a> </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="SatSolverObserver_8cpp-source.html#l00177">177</a> of file <a class="el" href="SatSolverObserver_8cpp-source.html">SatSolverObserver.cpp</a>.</p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7ff19734eb024bd6f3e2ad95647b1b27"></a><!-- doxytag: member="FastSatSolver::ProgressWatch::notify" ref="7ff19734eb024bd6f3e2ad95647b1b27" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void notify </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event notification, usually called by object implementing <a class="el" href="classFastSatSolver_1_1ISubject.html" title="Simple observer's subject base class.">ISubject</a> interface.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Design pattern <b>observer</b> </dd></dl>
<p>Implements <a class="el" href="classFastSatSolver_1_1IObserver.html#db968cb3b9d5c0f9c62efbc1ea91de8d">IObserver</a>.</p>
<p>Definition at line <a class="el" href="SatSolverObserver_8cpp-source.html#l00180">180</a> of file <a class="el" href="SatSolverObserver_8cpp-source.html">SatSolverObserver.cpp</a>.</p>
<p>References <a class="el" href="fssIO_8h-source.html#l00091">FastSatSolver::StreamDecorator::C_GREEN</a>, <a class="el" href="SatSolver_8cpp-source.html#l00086">AbstractProcess::getStepsCount()</a>, <a class="el" href="SatSolverObserver_8cpp-source.html#l00165">ProgressWatch::Private::last</a>, <a class="el" href="SatSolverObserver_8cpp-source.html#l00163">ProgressWatch::Private::process</a>, <a class="el" href="SatSolverObserver_8cpp-source.html#l00164">ProgressWatch::Private::stepsTotal</a>, and <a class="el" href="SatSolverObserver_8cpp-source.html#l00166">ProgressWatch::Private::stream</a>.</p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="SatSolverObserver_8h-source.html">SatSolverObserver.h</a><li><a class="el" href="SatSolverObserver_8cpp-source.html">SatSolverObserver.cpp</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Nov 5 22:30:22 2008 for Fast SAT Solver by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>