52 template<
unsigned int VDimension = 2 >
64 itkStaticConstMacro(
Dimension,
unsigned int, VDimension);
75 for (
unsigned int i = 0; i < VDimension; i++ )
84 for (
unsigned int i = 0; i < VDimension; i++ )
96 for (
unsigned int i = 0; i < VDimension; i++ )
105 for (
unsigned int i = 0; i < VDimension; i++ )
117 for (
unsigned int i = 0; i < VDimension; i++ )
126 for (
unsigned int i = 0; i < VDimension; i++ )
138 for (
unsigned int i = 0; i < VDimension && same; i++ )
149 for (
unsigned int i = 0; i < VDimension && same; i++ )
182 {
m_Size[element] = val; }
191 {
return m_Size[element]; }
196 {
for (
unsigned int i = 0; i < VDimension; ++i ) {
m_Size[i] = value; } }
213 #if defined( CABLE_CONFIGURATION )
216 void operator=(
const Self &);
221 template<
unsigned int VDimension >
222 std::ostream & operator<<(std::ostream & os, const Size< VDimension > & size)
225 for (
unsigned int i = 0; i + 1 < VDimension; ++i )
227 os << size[i] <<
", ";
229 if ( VDimension >= 1 )
231 os << size[VDimension - 1];