Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > fc669c0115c2f74e1d26807f2cb98f7a > files > 283

soprano-apidocs-2.5.2-1.fc13.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Soprano: Soprano::Util::SimpleStatementIterator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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="navpath">
    <ul>
      <li><a class="el" href="namespaceSoprano.html">Soprano</a>      </li>
      <li><a class="el" href="namespaceSoprano_1_1Util.html">Util</a>      </li>
      <li><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">Soprano::Util::SimpleStatementIterator</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>Soprano::Util::SimpleStatementIterator Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Soprano::Util::SimpleStatementIterator" --><!-- doxytag: inherits="Soprano::StatementIterator" -->
<p>The most simple version of a <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> simply iterates over a list of Statements.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="simplestatementiterator_8h_source.html">Soprano/Util/SimpleStatementIterator</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for Soprano::Util::SimpleStatementIterator:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classSoprano_1_1Util_1_1SimpleStatementIterator__inherit__graph.png" border="0" usemap="#Soprano_1_1Util_1_1SimpleStatementIterator_inherit__map" alt="Inheritance graph"/></div>
<map name="Soprano_1_1Util_1_1SimpleStatementIterator_inherit__map" id="Soprano_1_1Util_1_1SimpleStatementIterator_inherit__map">
<area shape="rect" id="node2" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements." alt="" coords="39,261,217,291"/><area shape="rect" id="node4" href="classSoprano_1_1Iterator.html" title="Soprano::Iterator\&lt; Statement \&gt;" alt="" coords="27,181,229,211"/><area shape="rect" id="node6" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano&#39;s exception system." alt="" coords="53,5,232,35"/><area shape="rect" id="node8" href="classSoprano_1_1Iterator.html" title="The basic Soprano iterator class." alt="" coords="144,85,293,115"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classSoprano_1_1Util_1_1SimpleStatementIterator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#a98d7e625f29ec81da0424720d3641ae3">SimpleStatementIterator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#ac22789a0e925b4f010f1f4c98f720af2">SimpleStatementIterator</a> (const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#a30255fd938c93aa582831304e5f30e89">SimpleStatementIterator</a> (const <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#ab763f1ebeeeb49eb490eb1026c025137">~SimpleStatementIterator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#aca5e1e20240c5cfb1a8b7d83ece00329">operator=</a> (const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#ab328c4e90ad4a61ec0e8b46333ed3d63">operator=</a> (const <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The most simple version of a <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> simply iterates over a list of Statements. </p>
<p>The <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html" title="The most simple version of a StatementIterator simply iterates over a list of Statements.">SimpleStatementIterator</a> has been designed as a trivial extension to <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> and can be used as a drop-in-replacement as shown below:</p>
<div class="fragment"><pre class="fragment"> <a class="codeRef" href="qlist.html">QList&lt;Statement&gt;</a> list;
 <a class="code" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html#a98d7e625f29ec81da0424720d3641ae3">SimpleStatementIterator</a> it( list );

 <span class="comment">// it and it2 iterate over the exact same data</span>
 <a class="code" href="classSoprano_1_1StatementIterator.html#aca6a294f91feb77dbacd0ca337f915f4">StatementIterator</a> it2 = it;
</pre></div><dl class="author"><dt><b>Author:</b></dt><dd>Sebastian Trueg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="simplestatementiterator_8h_source.html#l00053">53</a> of file <a class="el" href="simplestatementiterator_8h_source.html">simplestatementiterator.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a98d7e625f29ec81da0424720d3641ae3"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::SimpleStatementIterator" ref="a98d7e625f29ec81da0424720d3641ae3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Util::SimpleStatementIterator::SimpleStatementIterator </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac22789a0e925b4f010f1f4c98f720af2"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::SimpleStatementIterator" ref="ac22789a0e925b4f010f1f4c98f720af2" args="(const QList&lt; Statement &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Util::SimpleStatementIterator::SimpleStatementIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a30255fd938c93aa582831304e5f30e89"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::SimpleStatementIterator" ref="a30255fd938c93aa582831304e5f30e89" args="(const SimpleStatementIterator &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Util::SimpleStatementIterator::SimpleStatementIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab763f1ebeeeb49eb490eb1026c025137"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::~SimpleStatementIterator" ref="ab763f1ebeeeb49eb490eb1026c025137" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Soprano::Util::SimpleStatementIterator::~SimpleStatementIterator </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aca5e1e20240c5cfb1a8b7d83ece00329"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::operator=" ref="aca5e1e20240c5cfb1a8b7d83ece00329" args="(const QList&lt; Statement &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a>&amp; Soprano::Util::SimpleStatementIterator::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab328c4e90ad4a61ec0e8b46333ed3d63"></a><!-- doxytag: member="Soprano::Util::SimpleStatementIterator::operator=" ref="ab328c4e90ad4a61ec0e8b46333ed3d63" args="(const SimpleStatementIterator &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a>&amp; Soprano::Util::SimpleStatementIterator::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.5.2/soprano/util/<a class="el" href="simplestatementiterator_8h_source.html">simplestatementiterator.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>