18 #ifndef __itkSliceIterator_h
19 #define __itkSliceIterator_h
47 template<
class TPixel,
class TContainer >
53 m_ContainerPointer(n), m_Pos(0), m_Slice(s) {}
92 {
return this->Loc(m_Pos = n); }
97 {
return Loc(m_Pos); }
103 return orig.
m_Pos == this->m_Pos
104 && orig.
m_Slice.stride() == this->m_Slice.stride()
105 && orig.
m_Slice.start() == this->m_Slice.start();
111 return !operator==(orig);
119 return this->m_Pos < orig.
m_Pos
120 && this->m_Slice.stride() == orig.
m_Slice.stride()
121 && this->m_Slice.start() == orig.
m_Slice.start();
132 return ( *m_ContainerPointer )[start + n * stride];