<!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: itkVariableLengthVector.h Source File</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> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_ea7fc529ede9a38b0438cf13831ae873.html">Common</a> </div> <div class="contents"> <h1>itkVariableLengthVector.h</h1><a href="itkVariableLengthVector_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkVariableLengthVector.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2008-07-17 11:50:28 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.14 $</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> Copyright (c) Insight Software Consortium. All rights reserved.</span> <a name="l00010"></a>00010 <span class="comment"> See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span> <a name="l00011"></a>00011 <span class="comment"></span> <a name="l00012"></a>00012 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even </span> <a name="l00013"></a>00013 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR </span> <a name="l00014"></a>00014 <span class="comment"> PURPOSE. See the above copyright notices for more information.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span> <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkVariableLengthVector_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkVariableLengthVector_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkMacro_8h.html">itkMacro.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "itkNumericTraits.h"</span> <a name="l00022"></a>00022 <a name="l00023"></a>00023 <span class="keyword">namespace </span>itk <a name="l00024"></a>00024 { <a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> TValueType > <a name="l00068"></a><a class="code" href="classitk_1_1VariableLengthVector.html">00068</a> <span class="keyword">class </span><a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector</a> <a name="l00069"></a>00069 { <a name="l00070"></a>00070 <span class="keyword">public</span>: <a name="l00071"></a>00071 <a name="l00073"></a><a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">00073</a> <span class="keyword">typedef</span> TValueType <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a>; <a name="l00074"></a><a class="code" href="classitk_1_1VariableLengthVector.html#a9f5b4f7a1671c5b458711a4fba04187">00074</a> <span class="keyword">typedef</span> TValueType <a class="code" href="classitk_1_1VariableLengthVector.html#a9f5b4f7a1671c5b458711a4fba04187">ComponentType</a>; <a name="l00075"></a><a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">00075</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> NumericTraits< ValueType >::RealType <a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">RealValueType</a>; <a name="l00076"></a><a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">00076</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector</a> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>; <a name="l00077"></a>00077 <a name="l00079"></a><a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">00079</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a>; <a name="l00080"></a>00080 <a name="l00083"></a>00083 <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>(); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimension); <a name="l00087"></a>00087 <a name="l00094"></a>00094 <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>( <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a>* data, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sz, <a name="l00095"></a>00095 <span class="keywordtype">bool</span> LetArrayManageMemory = <span class="keyword">false</span>); <a name="l00096"></a>00096 <a name="l00103"></a>00103 <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a>* data, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sz, <a name="l00104"></a>00104 <span class="keywordtype">bool</span> LetArrayManageMemory = <span class="keyword">false</span>); <a name="l00105"></a>00105 <a name="l00106"></a>00106 <a name="l00116"></a>00116 <span class="keyword">template</span>< <span class="keyword">class</span> T > <a name="l00117"></a><a class="code" href="classitk_1_1VariableLengthVector.html#6d2a3847bb90116abc70e8d03f9929e8">00117</a> <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> & v) <a name="l00118"></a>00118 { <a name="l00119"></a>00119 m_NumElements = v.<a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a>(); <a name="l00120"></a>00120 m_Data = this-><a class="code" href="classitk_1_1VariableLengthVector.html#86ef20cc849aab410d133850057b522e">AllocateElements</a>(m_NumElements); <a name="l00121"></a>00121 m_LetArrayManageMemory = <span class="keyword">true</span>; <a name="l00122"></a>00122 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< v.<a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a>(); i++ ) <a name="l00123"></a>00123 { <a name="l00124"></a>00124 this->m_Data[i] = <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00125"></a>00125 } <a name="l00126"></a>00126 } <a name="l00128"></a>00128 <a name="l00131"></a>00131 <a class="code" href="classitk_1_1VariableLengthVector.html#5a12a09438578a7e098feb175ab22921">VariableLengthVector</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< TValueType ></a> & v); <a name="l00132"></a>00132 <a name="l00134"></a>00134 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#4ba9a4bf8f57cda9569750a574911eec">Fill</a> (TValueType <span class="keyword">const</span>& v); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <span class="keyword">template</span>< <span class="keyword">class</span> T > <a name="l00138"></a>00138 <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< TValueType ></a> & <span class="keyword">operator</span>= <a name="l00139"></a><a class="code" href="classitk_1_1VariableLengthVector.html#ef9f1909f63c41da27449af1c676ccf7">00139</a> (<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> & v) <a name="l00140"></a>00140 { <a name="l00141"></a>00141 <span class="keywordflow">if</span>( m_Data == static_cast< void * >(const_cast< T * > <a name="l00142"></a>00142 ((<span class="keyword">const_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> & <span class="keyword">></span>(v)).<a class="code" href="classitk_1_1VariableLengthVector.html#398acada8571ac0141d61dccb289e3ec">GetDataPointer</a>())) ) <a name="l00143"></a>00143 { <a name="l00144"></a>00144 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00145"></a>00145 } <a name="l00146"></a>00146 this-><a class="code" href="classitk_1_1VariableLengthVector.html#c8447247ce5c68e1c979a3e1811f859a">SetSize</a>( v.Size() ); <a name="l00147"></a>00147 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< v.Size(); i++ ) <a name="l00148"></a>00148 { <a name="l00149"></a>00149 this->m_Data[i] = <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00150"></a>00150 } <a name="l00151"></a>00151 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00152"></a>00152 } <a name="l00154"></a>00154 <a name="l00156"></a>00156 <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a> & <a class="code" href="classitk_1_1VariableLengthVector.html#ef9f1909f63c41da27449af1c676ccf7">operator=</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a> & v); <a name="l00157"></a>00157 <a name="l00159"></a><a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">00159</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a> (<span class="keywordtype">void</span> )<span class="keyword"> const </span> <a name="l00160"></a>00160 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_NumElements; } <a name="l00161"></a><a class="code" href="classitk_1_1VariableLengthVector.html#ec189161a001543e81470558c1925636">00161</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1VariableLengthVector.html#ec189161a001543e81470558c1925636">GetNumberOfElements</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span> <a name="l00162"></a>00162 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_NumElements; } <a name="l00164"></a>00164 <a name="l00166"></a><a class="code" href="classitk_1_1VariableLengthVector.html#75033acb60bd2ae6556f1f80969e53c3">00166</a> TValueType & <a class="code" href="classitk_1_1VariableLengthVector.html#75033acb60bd2ae6556f1f80969e53c3">operator[]</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> this->m_Data[i]; } <a name="l00167"></a>00167 <a name="l00169"></a><a class="code" href="classitk_1_1VariableLengthVector.html#c1904fbcb397cc065e5a83ce5bcae4f1">00169</a> TValueType <span class="keyword">const</span> & <a class="code" href="classitk_1_1VariableLengthVector.html#c1904fbcb397cc065e5a83ce5bcae4f1">operator[]</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->m_Data[i]; } <a name="l00170"></a>00170 <a name="l00172"></a><a class="code" href="classitk_1_1VariableLengthVector.html#658acd6c5fd843d5e371d585ce1c5bf7">00172</a> <span class="keyword">inline</span> <span class="keyword">const</span> TValueType & <a class="code" href="classitk_1_1VariableLengthVector.html#658acd6c5fd843d5e371d585ce1c5bf7">GetElement</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i )<span class="keyword"> const</span> <a name="l00173"></a>00173 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_Data[i]; } <a name="l00174"></a>00174 <a name="l00176"></a><a class="code" href="classitk_1_1VariableLengthVector.html#1179e2b3e9f79afbde179d091022ef62">00176</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#1179e2b3e9f79afbde179d091022ef62">SetElement</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i, <span class="keyword">const</span> TValueType & value ) <a name="l00177"></a>00177 { m_Data[i] = value; } <a name="l00178"></a>00178 <a name="l00189"></a>00189 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#c8447247ce5c68e1c979a3e1811f859a">SetSize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sz, <span class="keywordtype">bool</span> destroyExistingData=<span class="keyword">true</span>); <a name="l00190"></a><a class="code" href="classitk_1_1VariableLengthVector.html#7f6523c6a263f23c8c9e82d855e5c9ba">00190</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1VariableLengthVector.html#7f6523c6a263f23c8c9e82d855e5c9ba">GetSize</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span> <a name="l00191"></a>00191 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_NumElements; } <a name="l00193"></a>00193 <a name="l00199"></a>00199 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#033dd256aea741b18898b4e5006d6031">SetData</a>(TValueType* data,<span class="keywordtype">bool</span> LetArrayManageMemory = <span class="keyword">false</span>); <a name="l00200"></a>00200 <a name="l00210"></a>00210 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#033dd256aea741b18898b4e5006d6031">SetData</a>(TValueType* data, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sz, <span class="keywordtype">bool</span> LetArrayManageMemory = <span class="keyword">false</span>); <a name="l00211"></a>00211 <a name="l00212"></a>00212 <a name="l00215"></a>00215 <a class="code" href="classitk_1_1VariableLengthVector.html#8ca9c1b560b7d5bc473c34293a93fa75">~VariableLengthVector</a>(); <a name="l00216"></a>00216 <a name="l00217"></a>00217 <a name="l00224"></a>00224 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VariableLengthVector.html#cc7fb7a7fa1c78dae6528aa076ba8269">Reserve</a>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> ); <a name="l00225"></a>00225 <a name="l00227"></a>00227 TValueType * <a class="code" href="classitk_1_1VariableLengthVector.html#86ef20cc849aab410d133850057b522e">AllocateElements</a>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> size ) <span class="keyword">const</span>; <a name="l00228"></a>00228 <a name="l00229"></a><a class="code" href="classitk_1_1VariableLengthVector.html#398acada8571ac0141d61dccb289e3ec">00229</a> <span class="keyword">const</span> TValueType* <a class="code" href="classitk_1_1VariableLengthVector.html#398acada8571ac0141d61dccb289e3ec">GetDataPointer</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Data; } <a name="l00230"></a>00230 <a name="l00235"></a>00235 <span class="keyword">template</span>< <span class="keyword">class</span> T > <a name="l00236"></a><a class="code" href="classitk_1_1VariableLengthVector.html#742b9a7d79381547439679eb41a6b2d1">00236</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#742b9a7d79381547439679eb41a6b2d1">operator+</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> &v)<span class="keyword"> const</span> <a name="l00237"></a>00237 <span class="keyword"> </span>{ <a name="l00238"></a>00238 <span class="comment">// if( m_NumElements != v.GetSize() ) </span> <a name="l00239"></a>00239 <span class="comment">// { </span> <a name="l00240"></a>00240 <span class="comment">// itkGenericExceptionMacro( << "Cannot add VariableLengthVector of length " </span> <a name="l00241"></a>00241 <span class="comment">// << m_NumElements " and " << v.GetSize() );</span> <a name="l00242"></a>00242 <span class="comment">// } </span> <a name="l00243"></a>00243 <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> length = v.<a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a>(); <a name="l00244"></a>00244 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( length ); <a name="l00245"></a>00245 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< length; i++ ) <a name="l00246"></a>00246 { <a name="l00247"></a>00247 result[i] = (*this)[i] + <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00248"></a>00248 } <a name="l00249"></a>00249 <span class="keywordflow">return</span> result; <a name="l00250"></a>00250 } <a name="l00251"></a>00251 <span class="keyword">template</span>< <span class="keyword">class</span> T > <a name="l00252"></a><a class="code" href="classitk_1_1VariableLengthVector.html#dff95d903a9d6dbb3ecff6f5382ba974">00252</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#18ffaaed4ddc2240f2d803d35ae5015b">operator-</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> &v)<span class="keyword"> const</span> <a name="l00253"></a>00253 <span class="keyword"> </span>{ <a name="l00254"></a>00254 <span class="comment">// if( m_NumElements != v.GetSize() ) </span> <a name="l00255"></a>00255 <span class="comment">// { </span> <a name="l00256"></a>00256 <span class="comment">// itkGenericExceptionMacro( << "Cannot add VariableLengthVector of length " </span> <a name="l00257"></a>00257 <span class="comment">// << m_NumElements " and " << v.GetSize() );</span> <a name="l00258"></a>00258 <span class="comment">// } </span> <a name="l00259"></a>00259 <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> length = v.<a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a>(); <a name="l00260"></a>00260 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( length ); <a name="l00261"></a>00261 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< length; i++ ) <a name="l00262"></a>00262 { <a name="l00263"></a>00263 result[i] = (*this)[i] - <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00264"></a>00264 } <a name="l00265"></a>00265 <span class="keywordflow">return</span> result; <a name="l00266"></a>00266 } <a name="l00267"></a><a class="code" href="classitk_1_1VariableLengthVector.html#15d7769eca338e54865881c6d03f8bef">00267</a> <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#15d7769eca338e54865881c6d03f8bef">operator*</a>( T s )<span class="keyword"> const</span> <a name="l00268"></a>00268 <span class="keyword"> </span>{ <a name="l00269"></a>00269 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( m_NumElements ); <a name="l00270"></a>00270 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00271"></a>00271 { <a name="l00272"></a>00272 result[i] = m_Data[i] * <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( s ); <a name="l00273"></a>00273 } <a name="l00274"></a>00274 <span class="keywordflow">return</span> result; <a name="l00275"></a>00275 } <a name="l00276"></a><a class="code" href="classitk_1_1VariableLengthVector.html#488e3ead27293818ceb2c55c21db6bfc">00276</a> <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#488e3ead27293818ceb2c55c21db6bfc">operator/</a>( T s )<span class="keyword"> const</span> <a name="l00277"></a>00277 <span class="keyword"> </span>{ <a name="l00278"></a>00278 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( m_NumElements ); <a name="l00279"></a>00279 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00280"></a>00280 { <a name="l00281"></a>00281 result[i] = <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( <a name="l00282"></a>00282 <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">RealValueType</a> <span class="keyword">></span>(m_Data[i]) / <a name="l00283"></a>00283 static_cast< RealValueType >( s )); <a name="l00284"></a>00284 } <a name="l00285"></a>00285 <span class="keywordflow">return</span> result; <a name="l00286"></a>00286 } <a name="l00287"></a><a class="code" href="classitk_1_1VariableLengthVector.html#ede5480029cca06d31c10c5061bdc927">00287</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#742b9a7d79381547439679eb41a6b2d1">operator+</a>( TValueType s )<span class="keyword"> const</span> <a name="l00288"></a>00288 <span class="keyword"> </span>{ <a name="l00289"></a>00289 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( m_NumElements ); <a name="l00290"></a>00290 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00291"></a>00291 { <a name="l00292"></a>00292 result[i] = m_Data[i] + s; <a name="l00293"></a>00293 } <a name="l00294"></a>00294 <span class="keywordflow">return</span> result; <a name="l00295"></a>00295 } <a name="l00296"></a><a class="code" href="classitk_1_1VariableLengthVector.html#6a68cb75780771c54372c628ade2296e">00296</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#18ffaaed4ddc2240f2d803d35ae5015b">operator-</a>( TValueType s )<span class="keyword"> const</span> <a name="l00297"></a>00297 <span class="keyword"> </span>{ <a name="l00298"></a>00298 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> result( m_NumElements ); <a name="l00299"></a>00299 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00300"></a>00300 { <a name="l00301"></a>00301 result[i] = m_Data[i] - s; <a name="l00302"></a>00302 } <a name="l00303"></a>00303 <span class="keywordflow">return</span> result; <a name="l00304"></a>00304 } <a name="l00305"></a><a class="code" href="classitk_1_1VariableLengthVector.html#daf44b726bf4d29630119ad82ba98a71">00305</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#daf44b726bf4d29630119ad82ba98a71">operator--</a>() <a name="l00306"></a>00306 { <a name="l00307"></a>00307 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00308"></a>00308 { <a name="l00309"></a>00309 this->m_Data[i] -= <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( 1.0 ); <a name="l00310"></a>00310 } <a name="l00311"></a>00311 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00312"></a>00312 } <a name="l00313"></a><a class="code" href="classitk_1_1VariableLengthVector.html#e1af06ecccde788815251a9ca1e7ebaf">00313</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#e1af06ecccde788815251a9ca1e7ebaf">operator++</a>() <span class="comment">// prefix operator ++v;</span> <a name="l00314"></a>00314 { <a name="l00315"></a>00315 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00316"></a>00316 { <a name="l00317"></a>00317 this->m_Data[i] += <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( 1.0 ); <a name="l00318"></a>00318 } <a name="l00319"></a>00319 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00320"></a>00320 } <a name="l00321"></a><a class="code" href="classitk_1_1VariableLengthVector.html#6a68fc4e47ca43cfdcf9eaee75d29d6f">00321</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#daf44b726bf4d29630119ad82ba98a71">operator--</a>(<span class="keywordtype">int</span>) <span class="comment">// postfix operator v--;</span> <a name="l00322"></a>00322 { <a name="l00323"></a>00323 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> tmp(*<span class="keyword">this</span>); <a name="l00324"></a>00324 --tmp; <a name="l00325"></a>00325 <span class="keywordflow">return</span> tmp; <a name="l00326"></a>00326 } <a name="l00327"></a><a class="code" href="classitk_1_1VariableLengthVector.html#40c48453088fb4fff80ec3764f74ccc0">00327</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> <a class="code" href="classitk_1_1VariableLengthVector.html#e1af06ecccde788815251a9ca1e7ebaf">operator++</a>(<span class="keywordtype">int</span>) <span class="comment">// postfix operator v++;</span> <a name="l00328"></a>00328 { <a name="l00329"></a>00329 <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a> tmp(*<span class="keyword">this</span>); <a name="l00330"></a>00330 ++tmp; <a name="l00331"></a>00331 <span class="keywordflow">return</span> tmp; <a name="l00332"></a>00332 } <a name="l00333"></a>00333 <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a>& <span class="keyword">operator</span>-= <a name="l00334"></a><a class="code" href="classitk_1_1VariableLengthVector.html#5cf50db173a2548762b5382877e5b70c">00334</a> ( <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> &v ) <a name="l00335"></a>00335 { <a name="l00336"></a>00336 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00337"></a>00337 { <a name="l00338"></a>00338 m_Data[i] -= <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00339"></a>00339 } <a name="l00340"></a>00340 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00341"></a>00341 } <a name="l00342"></a><a class="code" href="classitk_1_1VariableLengthVector.html#7e080daaf2bd07ed43a0a03789ad9001">00342</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#5cf50db173a2548762b5382877e5b70c">operator-=</a>( TValueType s ) <a name="l00343"></a>00343 { <a name="l00344"></a>00344 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00345"></a>00345 { <a name="l00346"></a>00346 m_Data[i] -= s ; <a name="l00347"></a>00347 } <a name="l00348"></a>00348 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00349"></a>00349 } <a name="l00350"></a>00350 <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a>& <span class="keyword">operator</span>+= <a name="l00351"></a><a class="code" href="classitk_1_1VariableLengthVector.html#32b3b493a0dcd0aa324e72bba7f78aa6">00351</a> ( <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector< T ></a> &v ) <a name="l00352"></a>00352 { <a name="l00353"></a>00353 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00354"></a>00354 { <a name="l00355"></a>00355 m_Data[i] += <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( v[i] ); <a name="l00356"></a>00356 } <a name="l00357"></a>00357 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00358"></a>00358 } <a name="l00359"></a><a class="code" href="classitk_1_1VariableLengthVector.html#3a96062157e07298f2d71cc805e3b2fe">00359</a> <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#32b3b493a0dcd0aa324e72bba7f78aa6">operator+=</a>( TValueType s ) <a name="l00360"></a>00360 { <a name="l00361"></a>00361 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00362"></a>00362 { <a name="l00363"></a>00363 m_Data[i] += s; <a name="l00364"></a>00364 } <a name="l00365"></a>00365 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00366"></a>00366 } <a name="l00367"></a><a class="code" href="classitk_1_1VariableLengthVector.html#d393f2987e19e370286f6f1ba65d4993">00367</a> <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#d393f2987e19e370286f6f1ba65d4993">operator*=</a>( T s ) <a name="l00368"></a>00368 { <a name="l00369"></a>00369 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00370"></a>00370 { <a name="l00371"></a>00371 m_Data[i] *= (<span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( s )); <a name="l00372"></a>00372 } <a name="l00373"></a>00373 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00374"></a>00374 } <a name="l00375"></a><a class="code" href="classitk_1_1VariableLengthVector.html#77d75f5f16c96e97db06694725bccd20">00375</a> <span class="keyword">template</span>< <span class="keyword">class</span> T > <span class="keyword">inline</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">Self</a>& <a class="code" href="classitk_1_1VariableLengthVector.html#77d75f5f16c96e97db06694725bccd20">operator/=</a>( T s ) <a name="l00376"></a>00376 { <a name="l00377"></a>00377 <span class="keywordflow">for</span>( <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> i=0; i< m_NumElements; i++ ) <a name="l00378"></a>00378 { <a name="l00379"></a>00379 m_Data[i] = <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#2f54d348f8d424fe4a45b425bf9203ab">ValueType</a> <span class="keyword">></span>( <a name="l00380"></a>00380 <span class="keyword">static_cast<</span> <a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">RealValueType</a> <span class="keyword">></span>(m_Data[i]) / <a name="l00381"></a>00381 static_cast< RealValueType >( s )); <a name="l00382"></a>00382 } <a name="l00383"></a>00383 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00384"></a>00384 } <a name="l00385"></a>00385 <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a> & <a class="code" href="classitk_1_1VariableLengthVector.html#18ffaaed4ddc2240f2d803d35ae5015b">operator- </a>(); <span class="comment">// negation operator</span> <a name="l00386"></a>00386 <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1VariableLengthVector.html#c6a3b77de884236635f2336ba1b6e192">operator==</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a> &v) <span class="keyword">const</span>; <a name="l00387"></a>00387 <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1VariableLengthVector.html#e426216173cf53dec709b96234252dd1">operator!=</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html#d293b865fd7b78e9504ae6332c3b0594">Self</a> &v) <span class="keyword">const</span>; <a name="l00389"></a>00389 <a name="l00391"></a>00391 <a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">RealValueType</a> <a class="code" href="classitk_1_1VariableLengthVector.html#778f0684fee0713ca1bce6ba4be144ae">GetNorm</a>() <span class="keyword">const</span>; <a name="l00392"></a>00392 <a name="l00394"></a>00394 <a class="code" href="classitk_1_1VariableLengthVector.html#6f50241316d19b6319e53cc4729f24fc">RealValueType</a> <a class="code" href="classitk_1_1VariableLengthVector.html#740c74f6fb483ad0a8b7fdf66956de9e">GetSquaredNorm</a>() <span class="keyword">const</span>; <a name="l00395"></a>00395 <a name="l00396"></a>00396 <span class="keyword">private</span>: <a name="l00397"></a>00397 <a name="l00398"></a>00398 <span class="keywordtype">bool</span> m_LetArrayManageMemory; <span class="comment">// if true, the array is responsible for memory </span> <a name="l00399"></a>00399 <span class="comment">// of data</span> <a name="l00400"></a>00400 TValueType *m_Data; <span class="comment">// Array to hold data</span> <a name="l00401"></a>00401 <a class="code" href="classitk_1_1VariableLengthVector.html#a675a44e326f844e9c753813e19c00b5">ElementIdentifier</a> m_NumElements; <a name="l00402"></a>00402 }; <a name="l00403"></a>00403 <a name="l00407"></a>00407 <span class="keyword">template</span>< <span class="keyword">class</span> TValueType, <span class="keyword">class</span> T > <a name="l00408"></a>00408 <span class="keyword">inline</span> <a name="l00409"></a>00409 VariableLengthVector<TValueType> <a name="l00410"></a><a class="code" href="namespaceitk.html#f46a8320182745cb41783e32d41c22c9">00410</a> <a class="code" href="namespaceitk.html#f78c6e7736d8f1eb0a9924605a33cded">operator*</a>(<span class="keyword">const</span> T &scalar, <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector<TValueType></a> &v) <a name="l00411"></a>00411 { <a name="l00412"></a>00412 <span class="keywordflow">return</span> v * scalar; <a name="l00413"></a>00413 } <a name="l00414"></a>00414 <a name="l00415"></a>00415 <a name="l00416"></a>00416 <span class="keyword">template</span> <<span class="keyword">typename</span> TValueType > <a name="l00417"></a><a class="code" href="namespaceitk.html#654f91dbb3a00613ec4309574d90526f">00417</a> std::ostream & operator<<(std::ostream &os, const VariableLengthVector<TValueType> &arr) <a name="l00418"></a>00418 { <a name="l00419"></a>00419 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length = arr.<a class="code" href="classitk_1_1VariableLengthVector.html#5ea050915e0f0463a610e51db839c450">Size</a>(); <a name="l00420"></a>00420 <span class="keyword">const</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> last = (<span class="keywordtype">unsigned</span> int) length - 1; <a name="l00421"></a>00421 <a name="l00422"></a>00422 os << <span class="stringliteral">"["</span>; <a name="l00423"></a>00423 <span class="keywordflow">for</span> (<span class="keywordtype">signed</span> <span class="keywordtype">int</span> i=0; i < last; ++i) <a name="l00424"></a>00424 { <a name="l00425"></a>00425 os << arr[i] << <span class="stringliteral">", "</span>; <a name="l00426"></a>00426 } <a name="l00427"></a>00427 <span class="keywordflow">if</span> (length >= 1) <a name="l00428"></a>00428 { <a name="l00429"></a>00429 os << arr[last]; <a name="l00430"></a>00430 } <a name="l00431"></a>00431 os << <span class="stringliteral">"]"</span>; <a name="l00432"></a>00432 <span class="keywordflow">return</span> os; <a name="l00433"></a>00433 } <a name="l00434"></a>00434 <a name="l00435"></a>00435 } <span class="comment">// namespace itk</span> <a name="l00436"></a>00436 <a name="l00437"></a>00437 <span class="preprocessor">#include "itkNumericTraitsVariableLengthVectorPixel.h"</span> <a name="l00438"></a>00438 <a name="l00439"></a>00439 <span class="comment">// Define instantiation macro for this template.</span> <a name="l00440"></a><a class="code" href="itkVariableLengthVector_8h.html#aeefa3ccfe0dd02f1defbd88e76c1596">00440</a> <span class="preprocessor">#define ITK_TEMPLATE_VariableLengthVector(_, EXPORT, x, y) namespace itk { \</span> <a name="l00441"></a>00441 <span class="preprocessor"> _(1(class EXPORT VariableLengthVector< ITK_TEMPLATE_1 x >)) \</span> <a name="l00442"></a>00442 <span class="preprocessor"> namespace Templates { typedef VariableLengthVector< ITK_TEMPLATE_1 x > VariableLengthVector##y; } \</span> <a name="l00443"></a>00443 <span class="preprocessor"> }</span> <a name="l00444"></a>00444 <span class="preprocessor"></span> <a name="l00445"></a>00445 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span> <a name="l00446"></a>00446 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkVariableLengthVector+-.h"</span> <a name="l00447"></a>00447 <span class="preprocessor">#endif</span> <a name="l00448"></a>00448 <span class="preprocessor"></span> <a name="l00449"></a>00449 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span> <a name="l00450"></a>00450 <span class="preprocessor"></span><span class="preprocessor"># include "itkVariableLengthVector.txx"</span> <a name="l00451"></a>00451 <span class="preprocessor">#endif</span> <a name="l00452"></a>00452 <span class="preprocessor"></span> <a name="l00453"></a>00453 <span class="preprocessor">#endif</span> <a name="l00454"></a>00454 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Fri May 8 00:26:49 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>, © 1997-2000</small></address> </body> </html>