32 template<
unsigned int VIndexDimension >
71 template<
unsigned int VIndexDimension = 2 >
83 itkStaticConstMacro(
Dimension,
unsigned int, VIndexDimension);
104 for (
unsigned int i = 0; i < VIndexDimension; i++ )
113 for (
unsigned int i = 0; i < VIndexDimension; i++ )
126 for (
unsigned int i = 0; i < VIndexDimension; i++ )
135 for (
unsigned int i = 0; i < VIndexDimension; i++ )
147 for (
unsigned int i = 0; i < VIndexDimension; i++ )
148 { result[i] =
m_Index[i] + offset[i]; }
156 for (
unsigned int i = 0; i < VIndexDimension; i++ )
166 for (
unsigned int i = 0; i < VIndexDimension; i++ )
178 for (
unsigned int i = 0; i < VIndexDimension; i++ )
189 for (
unsigned int i = 0; i < VIndexDimension; i++ )
201 for (
unsigned int i = 0; i < VIndexDimension; i++ )
212 for (
unsigned int i = 0; i < VIndexDimension && same; i++ )
223 for (
unsigned int i = 0; i < VIndexDimension && same; i++ )
276 {
for (
unsigned int i = 0; i < VIndexDimension; ++i ) {
m_Index[i] = value; } }
286 template<
class TCoordRep >
289 itkForLoopRoundingAndAssignmentMacro(
IndexType,
306 template<
class TCoordRep >
309 for (
unsigned int i = 0; i < VIndexDimension; ++i )
318 #if defined( CABLE_CONFIGURATION )
321 void operator=(
const Self &);
336 template<
unsigned int VIndexDimension >
343 for (
unsigned int i = 0; i < VIndexDimension; ++i )
359 template<
unsigned int VIndexDimension >
360 Index< VIndexDimension >
371 template<
unsigned int VIndexDimension >
372 std::ostream & operator<<(std::ostream & os, const Index< VIndexDimension > & ind)
375 for (
unsigned int i = 0; i + 1 < VIndexDimension; ++i )
377 os << ind[i] <<
", ";
379 if ( VIndexDimension >= 1 )
381 os << ind[VIndexDimension - 1];