English
Kamil Dudka

Fast SAT Solver (C++, GAlib)

Detail souboru

Jméno:StáhnoutclassFastSatSolver_1_1VariableContainer.html [Stáhnout]
Umístění: fss > doc > api > html
Velikost:11.1 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: VariableContainer 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_1VariableContainer.html">VariableContainer</a></div>
<h1>VariableContainer Class Reference<br>
<small>
[<a class="el" href="group__SatProblem.html">SAT Problem</a>]</small>
</h1><!-- doxytag: class="FastSatSolver::VariableContainer" --><code>#include &lt;<a class="el" href="SatProblem_8h-source.html">SatProblem.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for VariableContainer:</div>
<div class="dynsection">
<p><center><img src="classFastSatSolver_1_1VariableContainer__coll__graph.png" border="0" usemap="#VariableContainer__coll__map" alt="Collaboration graph"></center>
<map name="VariableContainer__coll__map">
<area shape="rect" href="structFastSatSolver_1_1VariableContainer_1_1Private.html" title="Private" alt="" coords="43,5,112,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
 
<p>
<a href="classFastSatSolver_1_1VariableContainer-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Container for variables names. 
<p>
It can transform variable name to its integral index and vice versa. 
<p>Definition at line <a class="el" href="SatProblem_8h-source.html#l00043">43</a> of file <a class="el" href="SatProblem_8h-source.html">SatProblem.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_1VariableContainer.html#00f1722e56ddf903f93f0cde9c47ab04">VariableContainer</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_1VariableContainer.html#f7643e55f019aea93deabcb798965a46">~VariableContainer</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_1VariableContainer.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 variables managed by container. </dd></dl>
 <a href="#ab0d4bbd0884d04dbe281cc2b9d21206"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFastSatSolver_1_1VariableContainer.html#139a3f2e63c60e612c649a57ba1ce9dd">getVarName</a> (int index)</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read name of variable on desired index.  <a href="#139a3f2e63c60e612c649a57ba1ce9dd"></a><br></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_1VariableContainer.html#5cfe545a4a8940c871fb05f3e6d55adc">addVariable</a> (std::string name)</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add variable to container, if it wasn't there before.  <a href="#5cfe545a4a8940c871fb05f3e6d55adc"></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_1VariableContainer_1_1Private.html">Private</a></td></tr>
 
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="00f1722e56ddf903f93f0cde9c47ab04"></a><!-- doxytag: member="FastSatSolver::VariableContainer::VariableContainer" ref="00f1722e56ddf903f93f0cde9c47ab04" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classFastSatSolver_1_1VariableContainer.html">VariableContainer</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="SatProblem_8cpp-source.html#l00213">213</a> of file <a class="el" href="SatProblem_8cpp-source.html">SatProblem.cpp</a>.</p>
 
<p>References <a class="el" href="SatProblem_8cpp-source.html#l00211">VariableContainer::Private::currentIndex</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="f7643e55f019aea93deabcb798965a46"></a><!-- doxytag: member="FastSatSolver::VariableContainer::~VariableContainer" ref="f7643e55f019aea93deabcb798965a46" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">~<a class="el" href="classFastSatSolver_1_1VariableContainer.html">VariableContainer</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="SatProblem_8cpp-source.html#l00218">218</a> of file <a class="el" href="SatProblem_8cpp-source.html">SatProblem.cpp</a>.</p>
 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="ab0d4bbd0884d04dbe281cc2b9d21206"></a><!-- doxytag: member="FastSatSolver::VariableContainer::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 variables managed by container. </dd></dl>
 
<p>
 
<p>Definition at line <a class="el" href="SatProblem_8cpp-source.html#l00221">221</a> of file <a class="el" href="SatProblem_8cpp-source.html">SatProblem.cpp</a>.</p>
 
<p>References <a class="el" href="SatProblem_8cpp-source.html#l00211">VariableContainer::Private::currentIndex</a>.</p>
 
<p>Referenced by <a class="el" href="SatProblem_8cpp-source.html#l00165">SatProblem::getVarsCount()</a>, and <a class="el" href="SatProblem_8cpp-source.html#l00088">SatProblem::Private::parseFile()</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="139a3f2e63c60e612c649a57ba1ce9dd"></a><!-- doxytag: member="FastSatSolver::VariableContainer::getVarName" ref="139a3f2e63c60e612c649a57ba1ce9dd" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string getVarName           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Read name of variable on desired index. 
<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>index</em>&nbsp;</td><td>Index of variable should be in range &lt;0, <a class="el" href="classFastSatSolver_1_1VariableContainer.html#ab0d4bbd0884d04dbe281cc2b9d21206" title="Returns count of variables managed by container.">getLength()</a>-1&gt; </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns variable's name as STL string. </dd></dl>
 
<p>Definition at line <a class="el" href="SatProblem_8cpp-source.html#l00224">224</a> of file <a class="el" href="SatProblem_8cpp-source.html">SatProblem.cpp</a>.</p>
 
<p>References <a class="el" href="SatProblem_8cpp-source.html#l00209">VariableContainer::Private::indexToName</a>.</p>
 
<p>Referenced by <a class="el" href="SatProblem_8cpp-source.html#l00174">SatProblem::getVarName()</a>.</p>
 
</div>
</div><p>
<a class="anchor" name="5cfe545a4a8940c871fb05f3e6d55adc"></a><!-- doxytag: member="FastSatSolver::VariableContainer::addVariable" ref="5cfe545a4a8940c871fb05f3e6d55adc" args="(std::string name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int addVariable           </td>
          <td>(</td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Add variable to container, if it wasn't 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>name</em>&nbsp;</td><td>Name of variable to add. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return variable's integral index. </dd></dl>
 
<p>Definition at line <a class="el" href="SatProblem_8cpp-source.html#l00228">228</a> of file <a class="el" href="SatProblem_8cpp-source.html">SatProblem.cpp</a>.</p>
 
<p>References <a class="el" href="SatProblem_8cpp-source.html#l00211">VariableContainer::Private::currentIndex</a>, <a class="el" href="SatProblem_8cpp-source.html#l00209">VariableContainer::Private::indexToName</a>, and <a class="el" href="SatProblem_8cpp-source.html#l00210">VariableContainer::Private::nameToIndex</a>.</p>
 
<p>Referenced by <a class="el" href="Scanner_8cpp-source.html#l00134">ScannerStringHandler::readNext()</a>.</p>
 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="SatProblem_8h-source.html">SatProblem.h</a><li><a class="el" href="SatProblem_8cpp-source.html">SatProblem.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>