Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d5e74628f0e673bb8680aebce32b2c04 > files > 1722

itk-doc-3.12.0-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ITK: itk::ConstSliceIterator&lt; TPixel, TContainer &gt; Class Template Reference</title>
<link href="DoxygenStyle.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">


<!--  Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 -->
<center>
<a href="index.html" class="qindex">Main Page</a>&nbsp;&nbsp; 
<a href="modules.html" class="qindex">Groups</a>&nbsp;&nbsp;
<a href="namespaces.html" class="qindex">Namespace List</a>&nbsp;&nbsp;
<a href="hierarchy.html" class="qindex">Class Hierarchy</a>&nbsp;&nbsp;
<a href="classes.html" class="qindex">Alphabetical List</a>&nbsp;&nbsp;
<a href="annotated.html" class="qindex">Compound List</a>&nbsp;&nbsp; 
<a href="files.html" class="qindex">File
List</a>&nbsp;&nbsp; 
<a href="namespacemembers.html" class="qindex">Namespace Members</a>&nbsp;&nbsp; 
<a href="functions.html" class="qindex">Compound Members</a>&nbsp;&nbsp; 
<a href="globals.html" class="qindex">File Members</a>&nbsp;&nbsp;
<a href="pages.html" class="qindex">Concepts</a></center>


<!-- Generated by Doxygen 1.5.9 -->
  <div class="navpath"><a class="el" href="namespaceitk.html">itk</a>::<a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>
  </div>
<div class="contents">
<h1>itk::ConstSliceIterator&lt; TPixel, TContainer &gt; Class Template Reference<br>
<small>
[<a class="el" href="group__Iterators.html">Iterators</a>]</small>
</h1><!-- doxytag: class="itk::ConstSliceIterator" --><a class="el" href="classA.html">A</a> flexible iterator for <a class="el" href="namespaceitk.html" title="Hashtable class, used to implement the hashed associative containers itk_hash_set...">itk</a> containers(i.e. <a class="el" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">itk::Neighborhood</a>) that support pixel access through operator[].  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>&gt;</code>
<p>

<p>
<a href="classitk_1_1ConstSliceIterator-members.html">List of all members.</a><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"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#c668f9807cd1b285edaa384828620a80">Begin</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#fce3f5beb8146618cc7015dba54e9784">ConstSliceIterator</a> (const TContainer *n, std::slice s)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#abb6af3660e036b8329bc4c00b759bef">operator!=</a> (const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> &amp;orig)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const TPixel &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#b6659a2a3461e5450a28871533ca2954">operator*</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#40444512559d0bbe19f90660be269f55">operator++</a> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#890957b95d54f44b5e1b5ab2181aab23">operator++</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#fc47efae2b052da2da5273af3b681bf6">operator&lt;</a> (const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> &amp;orig)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#54432502ef333d55e9d17491098e397a">operator==</a> (const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> &amp;orig)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const TPixel &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#c84fc8ac76eee74d198618a34795f4d1">operator[]</a> (unsigned long n)</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1ConstSliceIterator.html#4923158836ab7ffa12c4d3784b8c9ebd">End</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class TPixel, class TContainer&gt;<br>
 class itk::ConstSliceIterator&lt; TPixel, TContainer &gt;</h3>

<a class="el" href="classA.html">A</a> flexible iterator for <a class="el" href="namespaceitk.html" title="Hashtable class, used to implement the hashed associative containers itk_hash_set...">itk</a> containers(i.e. <a class="el" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">itk::Neighborhood</a>) that support pixel access through operator[]. 
<p>
<a class="el" href="classitk_1_1ConstSliceIterator.html" title="A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel...">ConstSliceIterator</a> allows const iteration along a std::slice through the container. <a class="el" href="classA.html">A</a> slice is a construct that defines a starting position, stride length (distance between adjacent elements), and a length.<p>
Any container with operator[] const is supported. Because it uses this interface the iterator is only as efficient as the implementation of a container's operator[] method.<p>
References: Modeled after a slice iterator proposed by Bjarne Stroustrup in C++ Programming Language, Third Edition. Bjarne Stroustrup. Addison Wesley, Reading, MA. 1997. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00048">48</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="fce3f5beb8146618cc7015dba54e9784"></a><!-- doxytag: member="itk::ConstSliceIterator::ConstSliceIterator" ref="fce3f5beb8146618cc7015dba54e9784" args="(const TContainer *n, std::slice s)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::<a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>           </td>
          <td>(</td>
          <td class="paramtype">const TContainer *&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::slice&nbsp;</td>
          <td class="paramname"> <em>s</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00053">53</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c668f9807cd1b285edaa384828620a80"></a><!-- doxytag: member="itk::ConstSliceIterator::Begin" ref="c668f9807cd1b285edaa384828620a80" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::Begin           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a <a class="el" href="classitk_1_1ConstSliceIterator.html" title="A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel...">ConstSliceIterator</a> that points to the beginning of the slice. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00057">57</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="4923158836ab7ffa12c4d3784b8c9ebd"></a><!-- doxytag: member="itk::ConstSliceIterator::End" ref="4923158836ab7ffa12c4d3784b8c9ebd" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::End           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a <a class="el" href="classitk_1_1ConstSliceIterator.html" title="A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel...">ConstSliceIterator</a> that points to one past the end of the slice. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00066">66</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="abb6af3660e036b8329bc4c00b759bef"></a><!-- doxytag: member="itk::ConstSliceIterator::operator!=" ref="abb6af3660e036b8329bc4c00b759bef" args="(const ConstSliceIterator &amp;orig)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&lt; TPixel, TContainer &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>orig</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the logical inverse of the boolean == of two slice iterators. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00113">113</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

<p>References <a class="el" href="itk__hash__map_8h_source.html#l00332">itk::operator==()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b6659a2a3461e5450a28871533ca2954"></a><!-- doxytag: member="itk::ConstSliceIterator::operator*" ref="b6659a2a3461e5450a28871533ca2954" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const TPixel&amp; <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator*           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Dereferences the iterator, returning the value that it points to. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00098">98</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="40444512559d0bbe19f90660be269f55"></a><!-- doxytag: member="itk::ConstSliceIterator::operator++" ref="40444512559d0bbe19f90660be269f55" args="(int)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator++           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increments the iterator. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00082">82</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="890957b95d54f44b5e1b5ab2181aab23"></a><!-- doxytag: member="itk::ConstSliceIterator::operator++" ref="890957b95d54f44b5e1b5ab2181aab23" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a> <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator++           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increments the iterator. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00075">75</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="fc47efae2b052da2da5273af3b681bf6"></a><!-- doxytag: member="itk::ConstSliceIterator::operator&lt;" ref="fc47efae2b052da2da5273af3b681bf6" args="(const ConstSliceIterator &amp;orig)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator&lt;           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&lt; TPixel, TContainer &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>orig</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the boolean &lt; of two slice iterator positions. Result is only true if the slice iterators have the same stride and start location. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00121">121</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="54432502ef333d55e9d17491098e397a"></a><!-- doxytag: member="itk::ConstSliceIterator::operator==" ref="54432502ef333d55e9d17491098e397a" args="(const ConstSliceIterator &amp;orig)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classitk_1_1ConstSliceIterator.html">ConstSliceIterator</a>&lt; TPixel, TContainer &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>orig</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the logical &amp;&amp; of the boolean == of two slice iterator positions, stride, and start locations. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00105">105</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="c84fc8ac76eee74d198618a34795f4d1"></a><!-- doxytag: member="itk::ConstSliceIterator::operator[]" ref="c84fc8ac76eee74d198618a34795f4d1" args="(unsigned long n)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class TPixel , class TContainer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const TPixel&amp; <a class="el" href="classitk_1_1ConstSliceIterator.html">itk::ConstSliceIterator</a>&lt; TPixel, TContainer &gt;::operator[]           </td>
          <td>(</td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>n</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the element at position n of the slice. Sets the iterator to point to position n. 
<p>Definition at line <a class="el" href="itkConstSliceIterator_8h_source.html#l00091">91</a> of file <a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="itkConstSliceIterator_8h_source.html">itkConstSliceIterator.h</a></ul>
</div>
<hr><address><small>
Generated at Fri May 8 02:20:51 2009 for ITK  by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img 
src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen"
align="middle" border=0 width=110 height=53>
</a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>