29 template<
unsigned int VOffsetDimension >
54 template<
unsigned int VOffsetDimension = 2 >
62 itkStaticConstMacro(
Dimension,
unsigned int, VOffsetDimension);
80 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
81 { result[i] =
m_Offset[i] + offset[i]; }
91 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
92 { result[i] =
m_Offset[i] + size[i]; }
100 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
110 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
122 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
131 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
141 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
153 for (
unsigned int i = 0; i < VOffsetDimension && same; i++ )
164 for (
unsigned int i = 0; i < VOffsetDimension && same; i++ )
191 val+VOffsetDimension,
203 {
for (
unsigned int i = 0; i < VOffsetDimension; ++i ) {
m_Offset[i] = value; } }
214 #if defined( CABLE_CONFIGURATION )
217 void operator=(
const Self &);
232 template<
unsigned int VOffsetDimension >
233 class OffsetLexicographicCompare
239 for (
unsigned int i = 0; i < VOffsetDimension; ++i )
255 template<
unsigned int VOffsetDimension >
256 Offset< VOffsetDimension >
267 template<
unsigned int VOffsetDimension >
268 std::ostream & operator<<(std::ostream & os, const Offset< VOffsetDimension > & ind)
271 unsigned int dimlim = VOffsetDimension - 1;
272 for (
unsigned int i = 0; i < dimlim; ++i )
274 os << ind[i] <<
", ";
276 if ( VOffsetDimension >= 1 )
278 os << ind[VOffsetDimension - 1];