Sophie

Sophie

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

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::Array&lt; TValueType &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_1Array.html">Array</a>
  </div>
<div class="contents">
<h1>itk::Array&lt; TValueType &gt; Class Template Reference<br>
<small>
[<a class="el" href="group__DataRepresentation.html">Data Representation Objects</a>]</small>
</h1><!-- doxytag: class="itk::Array" --><!-- doxytag: inherits="vnl_vector" --><a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a> class with size defined at construction time.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="itkArray_8h_source.html">itkArray.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for itk::Array&lt; TValueType &gt;:</div>
<div class="dynsection">
<p><center><img src="classitk_1_1Array__inherit__graph.png" border="0" usemap="#itk_1_1Array_3_01TValueType_01_4__inherit__map" alt="Inheritance graph"></center>
<map name="itk_1_1Array_3_01TValueType_01_4__inherit__map">
<area shape="rect" id="node5" href="classitk_1_1Array.html" title="itk::Array\&lt; long \&gt;" alt="" coords="743,24,881,53"><area shape="rect" id="node7" href="classitk_1_1Array.html" title="itk::Array\&lt; unsigned long \&gt;" alt="" coords="711,77,913,107"><area shape="rect" id="node9" href="classitk_1_1Array.html" title="itk::Array\&lt; RealMeasurementType \&gt;" alt="" coords="679,131,945,160"><area shape="rect" id="node11" href="classitk_1_1Array.html" title="itk::Array\&lt; RealType \&gt;" alt="" coords="725,184,899,213"><area shape="rect" id="node13" href="classitk_1_1Array.html" title="itk::Array\&lt; double \&gt;" alt="" coords="733,237,891,267"><area shape="rect" id="node15" href="classitk_1_1Array.html" title="itk::Array\&lt; int \&gt;" alt="" coords="747,291,877,320"><area shape="rect" id="node17" href="classitk_1_1Array.html" title="itk::Array\&lt; MeasureType \&gt;" alt="" coords="711,344,913,373"><area shape="rect" id="node19" href="classitk_1_1Array.html" title="itk::Array\&lt; InstanceIdentifier \&gt;" alt="" coords="696,397,928,427"><area shape="rect" id="node21" href="classitk_1_1Array.html" title="itk::Array\&lt; unsigned int \&gt;" alt="" coords="715,451,909,480"><area shape="rect" id="node23" href="classitk_1_1Array.html" title="itk::Array\&lt; ScalarType \&gt;" alt="" coords="720,504,904,533"><area shape="rect" id="node25" href="classitk_1_1Array.html" title="itk::Array\&lt; PixelType \&gt;" alt="" coords="724,557,900,587"><area shape="rect" id="node27" href="classitk_1_1Array.html" title="itk::Array\&lt; AccumulateType \&gt;" alt="" coords="700,611,924,640"><area shape="rect" id="node2" href="classvnl__vector.html" title="vnl_vector\&lt; TValueType \&gt;" alt="" coords="5,317,203,347"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for itk::Array&lt; TValueType &gt;:</div>
<div class="dynsection">
<p><center><img src="classitk_1_1Array__coll__graph.png" border="0" usemap="#itk_1_1Array_3_01TValueType_01_4__coll__map" alt="Collaboration graph"></center>
<map name="itk_1_1Array_3_01TValueType_01_4__coll__map">
<area shape="rect" id="node2" href="classvnl__vector.html" title="vnl_vector\&lt; TValueType \&gt;" alt="" coords="5,5,203,35"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classitk_1_1Array-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="classitk_1_1Array.html">Array</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#d4025729ccd40bd63f6a1059c51ae6e7">Self</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef TValueType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="classvnl__vector.html">vnl_vector</a>&lt; TValueType &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#8a577ccda3562b7e8588aab8e61594e2">VnlVectorType</a></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="classitk_1_1Array.html#266d038568036b8d89fd26344f5bd980">Array</a> (const <a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a> *data, unsigned int sz, bool LetArrayManageMemory=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#d34fde5a949f3d4caad478743bcbacbc">Array</a> (<a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a> *data, unsigned int sz, bool LetArrayManageMemory=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#5635f565042656636c18fb790f902dec">Array</a> (unsigned int dimension)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#b46d639608205fd20409290fc12d646f">Array</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#e45a1f3512d4edbe2daf519e8277c403">Fill</a> (TValueType const &amp;v)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const TValueType &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#4283564dc6d798bd1fc75315c6332592">GetElement</a> (unsigned int i) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#1660568b1d36112a63303fa48ff2bca6">SetData</a> (TValueType *data, unsigned int sz, bool LetArrayManageMemory=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#5c5d03de3f0b7cfb69f028315da565ec">SetData</a> (TValueType *data, bool LetArrayManageMemory=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#193df78da682963705891001d9ad4bf1">SetElement</a> (unsigned int i, const TValueType &amp;value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#c46d9fd0b3bb51842b5bbbaa194cb867">~Array</a> ()</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#c89fa2fbf52212852ab52338df08b17b">GetNumberOfElements</a> (void) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#326c75c7d496c6471e35e9eff7f691a8">Size</a> (void) const </td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#18aab150e4db23afe899b76bd5234678">GetSize</a> (void) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#e8abcc2b0399b16134815bd6a9be202a">SetSize</a> (unsigned int sz)</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classitk_1_1Array.html">Self</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#c0bdacb8bf9b74f9dcc525cfacde56bc">operator=</a> (const <a class="el" href="classvnl__vector.html">VnlVectorType</a> &amp;rhs)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classitk_1_1Array.html">Self</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1Array.html#a40fa323d49a58d50873d5ce08f67ece">operator=</a> (const <a class="el" href="classitk_1_1Array.html">Self</a> &amp;rhs)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename TValueType&gt;<br>
 class itk::Array&lt; TValueType &gt;</h3>

<a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a> class with size defined at construction time. 
<p>
This class derives from the vnl_vector&lt;&gt; class. Its size is assigned at construction time (run time) and can not be changed afterwards except by using assignment to another <a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a>.<p>
The class is templated over the type of the elements.<p>
Template parameters for class <a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a>:<p>
<ul>
<li>TValueType = Element type stored at each location in the array. </li></ul>

<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00044">44</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="d4025729ccd40bd63f6a1059c51ae6e7"></a><!-- doxytag: member="itk::Array::Self" ref="d4025729ccd40bd63f6a1059c51ae6e7" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classitk_1_1Array.html">Array</a> <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html">Self</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00050">50</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="b6b11fececf564b55bd333b88281c56e"></a><!-- doxytag: member="itk::Array::ValueType" ref="b6b11fececf564b55bd333b88281c56e" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef TValueType <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The element type stored at each location in the <a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a>. 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00049">49</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="8a577ccda3562b7e8588aab8e61594e2"></a><!-- doxytag: member="itk::Array::VnlVectorType" ref="8a577ccda3562b7e8588aab8e61594e2" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classvnl__vector.html">vnl_vector</a>&lt;TValueType&gt; <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classvnl__vector.html">VnlVectorType</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00051">51</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="b46d639608205fd20409290fc12d646f"></a><!-- doxytag: member="itk::Array::Array" ref="b46d639608205fd20409290fc12d646f" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html">Array</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. It is created with an empty array it has to be allocated later by assignment 
</div>
</div><p>
<a class="anchor" name="5635f565042656636c18fb790f902dec"></a><!-- doxytag: member="itk::Array::Array" ref="5635f565042656636c18fb790f902dec" args="(unsigned int dimension)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html">Array</a>           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>dimension</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor with size. <a class="el" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a> can only be changed by assignment 
</div>
</div><p>
<a class="anchor" name="d34fde5a949f3d4caad478743bcbacbc"></a><!-- doxytag: member="itk::Array::Array" ref="d34fde5a949f3d4caad478743bcbacbc" args="(ValueType *data, unsigned int sz, bool LetArrayManageMemory=false)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html">Array</a>           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a> *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>LetArrayManageMemory</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor that initializes array with contents from a user supplied buffer. The pointer to the buffer and the length is specified. By default, the array does not manage the memory of the buffer. It merely points to that location and it is the user's responsibility to delete it. If "LetArrayManageMemory" is true, then this class will free the memory when this object is destroyed. 
</div>
</div><p>
<a class="anchor" name="266d038568036b8d89fd26344f5bd980"></a><!-- doxytag: member="itk::Array::Array" ref="266d038568036b8d89fd26344f5bd980" args="(const ValueType *data, unsigned int sz, bool LetArrayManageMemory=false)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Array.html">Array</a>           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classitk_1_1Array.html#b6b11fececf564b55bd333b88281c56e">ValueType</a> *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>LetArrayManageMemory</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor that initializes array with contents from a user supplied buffer. The pointer to the buffer and the length is specified. By default, the array does not manage the memory of the buffer. It merely points to that location and it is the user's responsibility to delete it. If "LetArrayManageMemory" is true, then this class will free the memory when this object is destroyed. 
</div>
</div><p>
<a class="anchor" name="c46d9fd0b3bb51842b5bbbaa194cb867"></a><!-- doxytag: member="itk::Array::~Array" ref="c46d9fd0b3bb51842b5bbbaa194cb867" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::~<a class="el" href="classitk_1_1Array.html">Array</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This destructor is not virtual for performance reasons. However, this means that subclasses cannot allocate memory. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e45a1f3512d4edbe2daf519e8277c403"></a><!-- doxytag: member="itk::Array::Fill" ref="e45a1f3512d4edbe2daf519e8277c403" args="(TValueType const &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::Fill           </td>
          <td>(</td>
          <td class="paramtype">TValueType const &amp;&nbsp;</td>
          <td class="paramname"> <em>v</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the all the elements of the array to the specified value 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00081">81</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

<p>Referenced by <a class="el" href="itkMatchCardinalityImageToImageMetric_8h_source.html#l00109">itk::MatchCardinalityImageToImageMetric&lt; TFixedImage, TMovingImage &gt;::GetDerivative()</a>, and <a class="el" href="itkMeasurementVectorTraits_8h_source.html#l00072">itk::MeasurementVectorTraits::SetLength()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4283564dc6d798bd1fc75315c6332592"></a><!-- doxytag: member="itk::Array::GetElement" ref="4283564dc6d798bd1fc75315c6332592" args="(unsigned int i) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const TValueType&amp; <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::GetElement           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>i</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get one element 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00096">96</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="c89fa2fbf52212852ab52338df08b17b"></a><!-- doxytag: member="itk::Array::GetNumberOfElements" ref="c89fa2fbf52212852ab52338df08b17b" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::GetNumberOfElements           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the number of elements in the <a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a> 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00091">91</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="18aab150e4db23afe899b76bd5234678"></a><!-- doxytag: member="itk::Array::GetSize" ref="18aab150e4db23afe899b76bd5234678" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::GetSize           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructively set the size to that given. Will lose data. 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00105">105</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

<p>Referenced by <a class="el" href="itkMeasurementVectorTraits_8h_source.html#l00124">itk::MeasurementVectorTraits::GetLength()</a>, and <a class="el" href="itkMetaArrayWriter_8h_source.html#l00132">itk::MetaArrayWriter::SetMultiChannelInput()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c0bdacb8bf9b74f9dcc525cfacde56bc"></a><!-- doxytag: member="itk::Array::operator=" ref="c0bdacb8bf9b74f9dcc525cfacde56bc" args="(const VnlVectorType &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classitk_1_1Array.html">Self</a>&amp; <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvnl__vector.html">VnlVectorType</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rhs</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy opertor 
</div>
</div><p>
<a class="anchor" name="a40fa323d49a58d50873d5ce08f67ece"></a><!-- doxytag: member="itk::Array::operator=" ref="a40fa323d49a58d50873d5ce08f67ece" args="(const Self &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classitk_1_1Array.html">Self</a>&amp; <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classitk_1_1Array.html">Self</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rhs</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy opertor 
</div>
</div><p>
<a class="anchor" name="1660568b1d36112a63303fa48ff2bca6"></a><!-- doxytag: member="itk::Array::SetData" ref="1660568b1d36112a63303fa48ff2bca6" args="(TValueType *data, unsigned int sz, bool LetArrayManageMemory=false)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::SetData           </td>
          <td>(</td>
          <td class="paramtype">TValueType *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>LetArrayManageMemory</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Similar to the previous method. In the above method, the size must be seperately set prior to using user-supplied data. This introduces an unnecessary allocation step to be performed. This method avoids it and should be used to import data whereever possible to avoid this. Set the pointer from which the data is imported. If "LetArrayManageMemory" is false, then the application retains the responsibility of freeing the memory for this data. If "LetArrayManageMemory" is true, then this class will free the memory when this object is destroyed. 
</div>
</div><p>
<a class="anchor" name="5c5d03de3f0b7cfb69f028315da565ec"></a><!-- doxytag: member="itk::Array::SetData" ref="5c5d03de3f0b7cfb69f028315da565ec" args="(TValueType *data, bool LetArrayManageMemory=false)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::SetData           </td>
          <td>(</td>
          <td class="paramtype">TValueType *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>LetArrayManageMemory</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the pointer from which the data is imported. If "LetArrayManageMemory" is false, then the application retains the responsibility of freeing the memory for this data. If "LetArrayManageMemory" is true, then this class will free the memory when this object is destroyed. 
<p>Referenced by <a class="el" href="itkMetaArrayReader_8h_source.html#l00117">itk::MetaArrayReader::GetOutput()</a>.</p>

</div>
</div><p>
<a class="anchor" name="193df78da682963705891001d9ad4bf1"></a><!-- doxytag: member="itk::Array::SetElement" ref="193df78da682963705891001d9ad4bf1" args="(unsigned int i, const TValueType &amp;value)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::SetElement           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TValueType &amp;&nbsp;</td>
          <td class="paramname"> <em>value</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>
Set one element 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00100">100</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="e8abcc2b0399b16134815bd6a9be202a"></a><!-- doxytag: member="itk::Array::SetSize" ref="e8abcc2b0399b16134815bd6a9be202a" args="(unsigned int sz)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::SetSize           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sz</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructively set the size to that given. Will lose data. 
<p>Referenced by <a class="el" href="itkMetaArrayReader_8h_source.html#l00229">itk::MetaArrayReader::GetMultiChannelOutput()</a>, and <a class="el" href="itkMeasurementVectorTraits_8h_source.html#l00072">itk::MeasurementVectorTraits::SetLength()</a>.</p>

</div>
</div><p>
<a class="anchor" name="326c75c7d496c6471e35e9eff7f691a8"></a><!-- doxytag: member="itk::Array::Size" ref="326c75c7d496c6471e35e9eff7f691a8" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TValueType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classitk_1_1Array.html">itk::Array</a>&lt; TValueType &gt;::<a class="el" href="classitk_1_1Size.html">Size</a>           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the number of elements in the <a class="el" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array</a> 
<p>Definition at line <a class="el" href="itkArray_8h_source.html#l00089">89</a> of file <a class="el" href="itkArray_8h_source.html">itkArray.h</a>.</p>

<p>Referenced by <a class="el" href="itkMeasurementVectorTraits_8h_source.html#l00154">itk::MeasurementVectorTraits::Assert()</a>, <a class="el" href="itkAutomaticTopologyMeshSource_8h_source.html#l00350">itk::AutomaticTopologyMeshSource&lt; TOutputMesh &gt;::IdentifierArrayEqualsFunction::operator()()</a>, <a class="el" href="itkAutomaticTopologyMeshSource_8h_source.html#l00326">itk::AutomaticTopologyMeshSource&lt; TOutputMesh &gt;::IdentifierArrayHashFunction::operator()()</a>, <a class="el" href="itkNeighborhoodSampler_8h_source.html#l00086">itk::Statistics::NeighborhoodSampler&lt; TSample &gt;::SetCenter()</a>, <a class="el" href="itkMetaArrayWriter_8h_source.html#l00071">itk::MetaArrayWriter::SetInput()</a>, and <a class="el" href="itkGaussianDensityFunction_8h_source.html#l00083">itk::Statistics::GaussianDensityFunction&lt; TMeasurementVector &gt;::SetMean()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="itkArray_8h_source.html">itkArray.h</a></ul>
</div>
<hr><address><small>
Generated at Fri May 8 01:07:21 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>