ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
Iterator class that is either 'const' or non-const qualified. A non-const qualified instantiation of this template allows the pixel that it points to, to be modified. A const qualified instantiation does not.
Definition at line 293 of file itkShapedImageNeighborhoodRange.h.
Public Types | |
using | difference_type = std::ptrdiff_t |
using | iterator_category = std::random_access_iterator_tag |
using | pointer = QualifiedPixelType * |
using | reference = PixelProxy< IsImageTypeConst > |
using | value_type = PixelType |
Public Member Functions | |
QualifiedIterator ()=default | |
QualifiedIterator (const QualifiedIterator< false > &arg) noexcept | |
reference | operator* () const noexcept |
QualifiedIterator & | operator++ () noexcept |
QualifiedIterator | operator++ (int) noexcept |
QualifiedIterator & | operator-- () noexcept |
QualifiedIterator | operator-- (int) noexcept |
Private Types | |
using | QualifiedImageType = typename std::conditional< VIsConst, const ImageType, ImageType >::type |
using | QualifiedInternalPixelType = typename std::conditional< IsImageTypeConst, const InternalPixelType, InternalPixelType >::type |
using | QualifiedPixelType = typename std::conditional< IsImageTypeConst, const PixelType, PixelType >::type |
Private Member Functions | |
TImageNeighborhoodPixelAccessPolicy | CreatePixelAccessPolicy (EmptyPixelAccessParameter) const |
template<typename TPixelAccessParameter > | |
TImageNeighborhoodPixelAccessPolicy | CreatePixelAccessPolicy (const TPixelAccessParameter pixelAccessParameter) const |
QualifiedIterator (QualifiedInternalPixelType *const imageBufferPointer, const ImageSizeType &imageSize, const OffsetType &offsetTable, const NeighborhoodAccessorFunctorType &neighborhoodAccessor, const OptionalPixelAccessParameterType optionalPixelAccessParameter, const IndexType &relativeLocation, const OffsetType *const offset) noexcept | |
Private Attributes | |
const OffsetType * | m_CurrentOffset = nullptr |
QualifiedInternalPixelType * | m_ImageBufferPointer = nullptr |
ImageSizeType | m_ImageSize = { {} } |
NeighborhoodAccessorFunctorType | m_NeighborhoodAccessor |
OffsetType | m_OffsetTable = { {} } |
OptionalPixelAccessParameterType | m_OptionalPixelAccessParameter |
IndexType | m_RelativeLocation = { {} } |
Static Private Attributes | |
static constexpr bool | IsImageTypeConst = std::is_const<QualifiedImageType>::value |
using itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::difference_type = std::ptrdiff_t |
Definition at line 377 of file itkShapedImageNeighborhoodRange.h.
using itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::iterator_category = std::random_access_iterator_tag |
Definition at line 381 of file itkShapedImageNeighborhoodRange.h.
using itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::pointer = QualifiedPixelType* |
Definition at line 380 of file itkShapedImageNeighborhoodRange.h.
|
private |
Definition at line 305 of file itkShapedImageNeighborhoodRange.h.
|
private |
Definition at line 309 of file itkShapedImageNeighborhoodRange.h.
|
private |
Definition at line 312 of file itkShapedImageNeighborhoodRange.h.
using itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::reference = PixelProxy<IsImageTypeConst> |
Definition at line 379 of file itkShapedImageNeighborhoodRange.h.
using itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::value_type = PixelType |
Definition at line 378 of file itkShapedImageNeighborhoodRange.h.
|
inlineprivatenoexcept |
Definition at line 338 of file itkShapedImageNeighborhoodRange.h.
|
default |
Default-constructor, as required for any C++11 Forward Iterator. Offers the guarantee added to the C++14 Standard: "value-initialized iterators may be compared and shall compare equal to other value-initialized iterators of the same type." \note `QualifiedIterator<VIsConst>` follows the C++ "Rule of Zero" when VIsConst is true: The other five "special member functions" of the class are then implicitly defaulted. When VIsConst is false, its copy-constructor is provided explicitly, but it still behaves the same as a default implementation.
|
inlinenoexcept |
Constructor that allows implicit conversion from non-const to const iterator. Also serves as copy-constructor of a non-const iterator.
Definition at line 398 of file itkShapedImageNeighborhoodRange.h.
|
inlineprivate |
Definition at line 360 of file itkShapedImageNeighborhoodRange.h.
References itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_CurrentOffset, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_ImageSize, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_NeighborhoodAccessor, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_OffsetTable, and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_RelativeLocation.
|
inlineprivate |
Definition at line 366 of file itkShapedImageNeighborhoodRange.h.
References itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_CurrentOffset, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_ImageSize, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_NeighborhoodAccessor, itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_OffsetTable, and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_RelativeLocation.
|
inlinenoexcept |
Returns a reference to the current pixel.
Definition at line 415 of file itkShapedImageNeighborhoodRange.h.
References itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::CreatePixelAccessPolicy(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_ImageBufferPointer, and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::m_OptionalPixelAccessParameter.
|
inlinenoexcept |
Prefix increment ('++it').
Definition at line 423 of file itkShapedImageNeighborhoodRange.h.
|
inlinenoexcept |
Postfix increment ('it++').
Definition at line 434 of file itkShapedImageNeighborhoodRange.h.
|
inlinenoexcept |
Prefix decrement ('–it').
Definition at line 444 of file itkShapedImageNeighborhoodRange.h.
|
inlinenoexcept |
Postfix increment ('it–').
Definition at line 455 of file itkShapedImageNeighborhoodRange.h.
|
defaultnoexcept |
Explicitly-defaulted assignment operator.
|
inlinenoexcept |
Returns it[n] for iterator 'it' and integer value 'n'.
Definition at line 572 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 != it2) for iterators it1 and it2.
Definition at line 479 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it + n) for iterator 'it' and integer value 'n'.
Definition at line 551 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (n + it) for iterator 'it' and integer value 'n'.
Definition at line 558 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Does (it += d) for iterator 'it' and integer value 'n'.
Definition at line 523 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 - it2) for iterators it1 and it2.
Definition at line 539 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it - n) for iterator 'it' and integer value 'n'.
Definition at line 565 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Does (it -= d) for iterator 'it' and integer value 'n'.
Definition at line 531 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 < it2) for iterators it1 and it2.
Definition at line 487 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 <= it2) for iterators it1 and it2.
Definition at line 507 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 == it2) for iterators it1 and it2. Note that these iterators should be from the same range. This operator does not support comparing iterators from different ranges.
Definition at line 467 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 > it2) for iterators it1 and it2.
Definition at line 499 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Returns (it1 >= it2) for iterators it1 and it2.
Definition at line 515 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Definition at line 298 of file itkShapedImageNeighborhoodRange.h.
|
friend |
Definition at line 302 of file itkShapedImageNeighborhoodRange.h.
|
staticprivate |
Definition at line 307 of file itkShapedImageNeighborhoodRange.h.
|
private |
Definition at line 334 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::CreatePixelAccessPolicy(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::operator++(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::operator--().
|
private |
Definition at line 315 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::begin(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::end(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::operator*().
|
private |
|
private |
Definition at line 324 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::begin(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::CreatePixelAccessPolicy(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::end().
|
private |
Definition at line 321 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::begin(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::CreatePixelAccessPolicy(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::end().
|
private |
Definition at line 326 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::begin(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::end(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::operator*().
|
private |
Definition at line 332 of file itkShapedImageNeighborhoodRange.h.
Referenced by itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::begin(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::QualifiedIterator< VIsConst >::CreatePixelAccessPolicy(), itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::end(), and itk::Experimental::ShapedImageNeighborhoodRange< TImage, TImageNeighborhoodPixelAccessPolicy >::SetLocation().