<!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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</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="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 <<a class="el" href="simplestatementiterator_8h_source.html">Soprano/Util/SimpleStatementIterator</a>></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\< Statement \>" alt="" coords="27,181,229,211"/><area shape="rect" id="node6" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano'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"> </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"> </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>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </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> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </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> & </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>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> & </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> &)</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<Statement></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 <<a href="mailto:trueg@kde.org">trueg@kde.org</a>> </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 & 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> ) </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< Statement > &)" --> <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>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"></td> <td> ) </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 &)" --> <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> & </td> <td class="paramname"></td> <td> ) </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> ) </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< Statement > &)" --> <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>& Soprano::Util::SimpleStatementIterator::operator= </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"></td> <td> ) </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 &)" --> <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>& Soprano::Util::SimpleStatementIterator::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html">SimpleStatementIterator</a> & </td> <td class="paramname"></td> <td> ) </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 <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>