18 #ifndef itkImageRegionConstIterator_h
19 #define itkImageRegionConstIterator_h
108 template <
typename TImage>
120 static constexpr
unsigned int ImageIteratorDimension = Superclass::ImageIteratorDimension;
146 m_SpanBeginOffset = 0;
156 m_SpanBeginOffset = this->m_BeginOffset;
157 m_SpanEndOffset = this->m_BeginOffset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
172 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
173 (ind[0] - this->m_Region.GetIndex()[0]);
174 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
188 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
189 (ind[0] - this->m_Region.GetIndex()[0]);
190 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
198 Superclass::GoToBegin();
201 m_SpanBeginOffset = this->m_BeginOffset;
202 m_SpanEndOffset = this->m_BeginOffset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
210 Superclass::GoToEnd();
213 m_SpanEndOffset = this->m_EndOffset;
214 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
223 Superclass::SetIndex(ind);
224 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
225 (ind[0] - this->m_Region.GetIndex()[0]);
226 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
240 if (++this->m_Offset >= m_SpanEndOffset)
258 if (--this->m_Offset < m_SpanBeginOffset)
280 #ifndef ITK_MANUAL_INSTANTIATION
281 # include "itkImageRegionConstIterator.hxx"