Files
ortools-clone/docs/cpp_graph/classoperations__research_1_1ElementIterator.html
2019-06-29 18:18:08 +02:00

210 lines
11 KiB
HTML

<!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>
<title>OR-Tools</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<meta charset="utf-8"/>
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">OR-Tools 7.2</span>
</div>
</div>
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceoperations__research.html">operations_research</a></li><li class="navelem"><a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoperations__research_1_1ElementIterator-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">operations_research::ElementIterator&lt; Set &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6d122c3ffab9e07e631ac9bb37847bbd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1ElementIterator.html#a6d122c3ffab9e07e631ac9bb37847bbd">ElementIterator</a> (<a class="el" href="classoperations__research_1_1Set.html">Set</a> set)</td></tr>
<tr class="separator:a6d122c3ffab9e07e631ac9bb37847bbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a423bc77da7c559bad4f7da6275a1ed3b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1ElementIterator.html#a423bc77da7c559bad4f7da6275a1ed3b">operator!=</a> (const <a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a> &amp;other) const</td></tr>
<tr class="separator:a423bc77da7c559bad4f7da6275a1ed3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9028f0663e576b3eb972983df3967b6f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1ElementIterator.html#a9028f0663e576b3eb972983df3967b6f">operator *</a> () const</td></tr>
<tr class="memdesc:a9028f0663e576b3eb972983df3967b6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the smallest element in the current_set_. <a href="#a9028f0663e576b3eb972983df3967b6f">More...</a><br /></td></tr>
<tr class="separator:a9028f0663e576b3eb972983df3967b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac756fa71bfc5938f266bf1abeb76ffe"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1ElementIterator.html#aac756fa71bfc5938f266bf1abeb76ffe">operator++</a> ()</td></tr>
<tr class="memdesc:aac756fa71bfc5938f266bf1abeb76ffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Advances the iterator by removing its smallest element. <a href="#aac756fa71bfc5938f266bf1abeb76ffe">More...</a><br /></td></tr>
<tr class="separator:aac756fa71bfc5938f266bf1abeb76ffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Set&gt;<br />
class operations_research::ElementIterator&lt; Set &gt;</h3>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000025">Todo:</a></b></dt><dd>(user): Move the Set-related classbelow to util/bitset.h Iterates over the elements of a set represented as an unsigned integer, starting from the smallest element.</dd></dl>
<p>(See the class Set&lt;Integer&gt; below.) </p>
<p class="definition">Definition at line <a class="el" href="hamiltonian__path_8h_source.html#l00104">104</a> of file <a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6d122c3ffab9e07e631ac9bb37847bbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d122c3ffab9e07e631ac9bb37847bbd">&#9670;&nbsp;</a></span>ElementIterator()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Set &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1ElementIterator.html">operations_research::ElementIterator</a>&lt; <a class="el" href="classoperations__research_1_1Set.html">Set</a> &gt;::<a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Set.html">Set</a>&#160;</td>
<td class="paramname"><em>set</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hamiltonian__path_8h_source.html#l00106">106</a> of file <a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9028f0663e576b3eb972983df3967b6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9028f0663e576b3eb972983df3967b6f">&#9670;&nbsp;</a></span>operator *()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Set &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classoperations__research_1_1ElementIterator.html">operations_research::ElementIterator</a>&lt; <a class="el" href="classoperations__research_1_1Set.html">Set</a> &gt;::operator * </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the smallest element in the current_set_. </p>
<p class="definition">Definition at line <a class="el" href="hamiltonian__path_8h_source.html#l00112">112</a> of file <a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>.</p>
</div>
</div>
<a id="a423bc77da7c559bad4f7da6275a1ed3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a423bc77da7c559bad4f7da6275a1ed3b">&#9670;&nbsp;</a></span>operator!=()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Set &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classoperations__research_1_1ElementIterator.html">operations_research::ElementIterator</a>&lt; <a class="el" href="classoperations__research_1_1Set.html">Set</a> &gt;::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a>&lt; <a class="el" href="classoperations__research_1_1Set.html">Set</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hamiltonian__path_8h_source.html#l00107">107</a> of file <a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>.</p>
</div>
</div>
<a id="aac756fa71bfc5938f266bf1abeb76ffe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac756fa71bfc5938f266bf1abeb76ffe">&#9670;&nbsp;</a></span>operator++()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Set &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classoperations__research_1_1ElementIterator.html">ElementIterator</a>&amp; <a class="el" href="classoperations__research_1_1ElementIterator.html">operations_research::ElementIterator</a>&lt; <a class="el" href="classoperations__research_1_1Set.html">Set</a> &gt;::operator++ </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Advances the iterator by removing its smallest element. </p>
<p class="definition">Definition at line <a class="el" href="hamiltonian__path_8h_source.html#l00115">115</a> of file <a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="hamiltonian__path_8h_source.html">hamiltonian_path.h</a></li>
</ul>
</div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>