English
Kamil Dudka

Fast SAT Solver (C++, GAlib)

Detail souboru

Jméno:StáhnoutclassFastSatSolver_1_1SatItemSet.html [Stáhnout]
Umístění: fss > doc > api > html
Velikost:12.6 KB
Poslední změna:2022-09-09 13:06

Zdrojový kód

<!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: SatItemSet 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&nbsp;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&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<div class="nav">
<a class="el" href="namespaceFastSatSolver.html">FastSatSolver</a>::<a class="el" href="classFastSatSolver_1_1SatItemSet.html">SatItemSet</a></div>
<h1>SatItemSet Class Reference<br>
<small>
[<a class="el" href="group__SatSolver.html">SAT Solver</a>]</small>
</h1><!-- doxytag: class="FastSatSolver::SatItemSet" --><code>#include &lt;<a class="el" href="SatSolver_8h-source.html">SatSolver.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for SatItemSet:</div>
<div class="dynsection">
<p><center><img src="classFastSatSolver_1_1SatItemSet__coll__graph.png" border="0" usemap="#SatItemSet__coll__map" alt="Collaboration graph"></center>
<map name="SatItemSet__coll__map">
<area shape="rect" href="structFastSatSolver_1_1SatItemSet_1_1Private.html" title="Private" alt="" coords="19,5,88,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
 
<p>
<a href="classFastSatSolver_1_1SatItemSet-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Associative array for <a class="el" href="classFastSatSolver_1_1ISatItem.html" title="Abstraction of solution candidate.">ISatItem</a> objects. 
<p>
<dl class="attention" compact><dt><b>Attention:</b></dt><dd>On heap allocated objects are expected. They will be deleted by container's destructor. </dd></dl>
 
<p>Definition at line <a class="el" href="SatSolver_8h-source.html#l00289">289</a> of file <a class="el" href="SatSolver_8h-source.html">SatSolver.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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#833d48be9570b6fe7286c0649058d7c1">SatItemSet</a> ()</td></tr>
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#a374f535d376a6adb5744cac83f0c52a">~SatItemSet</a> ()</td></tr>
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#ab0d4bbd0884d04dbe281cc2b9d21206">getLength</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns count of item managed by container. </dd></dl>
 <a href="#ab0d4bbd0884d04dbe281cc2b9d21206"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#e50e61bb65bb3328f6afbd8e005cb96f">addItem</a> (<a class="el" href="classFastSatSolver_1_1ISatItem.html">ISatItem</a> *item)</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add item to container, if it hasn't been there before.  <a href="#e50e61bb65bb3328f6afbd8e005cb96f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classFastSatSolver_1_1SatItemVector.html">SatItemVector</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#1ec6a07165be87a359b04ee833c0a283">createVector</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Export container's content to <a class="el" href="classFastSatSolver_1_1SatItemVector.html" title="Linear storage container for ISatItem objects.">SatItemVector</a>.  <a href="#1ec6a07165be87a359b04ee833c0a283"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1SatItemSet.html#c8bb3912a3ce86b15842e79d0b421204">clear</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove all item from container and free from memory.  <a href="#c8bb3912a3ce86b15842e79d0b421204"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structFastSatSolver_1_1SatItemSet_1_1Private.html">Private</a></td></tr>
 
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="833d48be9570b6fe7286c0649058d7c1"></a><!-- doxytag: member="FastSatSolver::SatItemSet::SatItemSet" ref="833d48be9570b6fe7286c0649058d7c1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classFastSatSolver_1_1SatItemSet.html">SatItemSet</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00249">249</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="a374f535d376a6adb5744cac83f0c52a"></a><!-- doxytag: member="FastSatSolver::SatItemSet::~SatItemSet" ref="a374f535d376a6adb5744cac83f0c52a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">~<a class="el" href="classFastSatSolver_1_1SatItemSet.html">SatItemSet</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00253">253</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
<p>References <a class="el" href="SatSolver_8cpp-source.html#l00273">SatItemSet::clear()</a>.</p>
 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="ab0d4bbd0884d04dbe281cc2b9d21206"></a><!-- doxytag: member="FastSatSolver::SatItemSet::getLength" ref="ab0d4bbd0884d04dbe281cc2b9d21206" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getLength           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns count of item managed by container. </dd></dl>
 
<p>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00257">257</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
<p>References <a class="el" href="SatSolver_8cpp-source.html#l00239">SatItemSet::Private::set</a>.</p>
 
<p>Referenced by <a class="el" href="GaSatSolver_8cpp-source.html#l00131">GaSatSolver::getSolutionsCount()</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="e50e61bb65bb3328f6afbd8e005cb96f"></a><!-- doxytag: member="FastSatSolver::SatItemSet::addItem" ref="e50e61bb65bb3328f6afbd8e005cb96f" args="(ISatItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void addItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classFastSatSolver_1_1ISatItem.html">ISatItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Add item to container, if it hasn't been there before. 
<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>item</em>&nbsp;</td><td>Item to add to container. </td></tr>
  </table>
</dl>
<dl class="attention" compact><dt><b>Attention:</b></dt><dd>On heap allocated objects is expected. It will be deleted by container's destructor. </dd></dl>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00260">260</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
<p>References <a class="el" href="SatSolver_8cpp-source.html#l00241">SatItemSet::Private::addItem()</a>.</p>
 
<p>Referenced by <a class="el" href="GaSatSolver_8cpp-source.html#l00165">GaSatSolver::Private::fitness()</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="1ec6a07165be87a359b04ee833c0a283"></a><!-- doxytag: member="FastSatSolver::SatItemSet::createVector" ref="1ec6a07165be87a359b04ee833c0a283" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classFastSatSolver_1_1SatItemVector.html">SatItemVector</a> * createVector           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Export container's content to <a class="el" href="classFastSatSolver_1_1SatItemVector.html" title="Linear storage container for ISatItem objects.">SatItemVector</a>. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>New <a class="el" href="classFastSatSolver_1_1SatItemVector.html" title="Linear storage container for ISatItem objects.">SatItemVector</a> will be allocated on the heap. </dd></dl>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00263">263</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
<p>References <a class="el" href="SatSolver_8cpp-source.html#l00179">SatItemVector::addItem()</a>, <a class="el" href="SatSolver_8cpp-source.html#l00223">SatItemSet::Private::SatItemHashDecorator::clone()</a>, and <a class="el" href="SatSolver_8cpp-source.html#l00239">SatItemSet::Private::set</a>.</p>
 
<p>Referenced by <a class="el" href="GaSatSolver_8cpp-source.html#l00134">GaSatSolver::getSolutionVector()</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="c8bb3912a3ce86b15842e79d0b421204"></a><!-- doxytag: member="FastSatSolver::SatItemSet::clear" ref="c8bb3912a3ce86b15842e79d0b421204" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Remove all item from container and free from memory. 
<p>
 
<p>Definition at line <a class="el" href="SatSolver_8cpp-source.html#l00273">273</a> of file <a class="el" href="SatSolver_8cpp-source.html">SatSolver.cpp</a>.</p>
 
<p>References <a class="el" href="SatSolver_8cpp-source.html#l00214">SatItemSet::Private::SatItemHashDecorator::dispose()</a>, and <a class="el" href="SatSolver_8cpp-source.html#l00239">SatItemSet::Private::set</a>.</p>
 
<p>Referenced by <a class="el" href="SatSolver_8cpp-source.html#l00253">SatItemSet::~SatItemSet()</a>.</p>
 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="SatSolver_8h-source.html">SatSolver.h</a><li><a class="el" href="SatSolver_8cpp-source.html">SatSolver.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&nbsp;
<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>