ITK
6.0.0
Insight 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 227 of file itkImageBufferRange.h.
Classes | |
class | PixelReferenceWrapper |
Public Types | |
using | difference_type = ptrdiff_t |
using | iterator_category = std::random_access_iterator_tag |
using | pointer = QualifiedPixelType * |
using | reference = std::conditional_t< SupportsDirectPixelAccess, QualifiedPixelType &, PixelProxy< IsImageTypeConst > > |
using | value_type = PixelType |
Public Member Functions | |
reference | operator* () const noexcept |
QualifiedIterator ()=default | |
template<bool VIsArgumentConst, typename = std::enable_if_t<VIsConst && !VIsArgumentConst>> | |
QualifiedIterator (const QualifiedIterator< VIsArgumentConst > &arg) noexcept | |
QualifiedIterator & | operator++ () noexcept |
QualifiedIterator | operator++ (int) noexcept |
QualifiedIterator & | operator-- () noexcept |
QualifiedIterator | operator-- (int) noexcept |
reference | operator[] (const difference_type n) const noexcept |
Private Types | |
using | QualifiedImageType = std::conditional_t< VIsConst, const TImage, TImage > |
using | QualifiedInternalPixelType = std::conditional_t< IsImageTypeConst, const InternalPixelType, InternalPixelType > |
using | QualifiedPixelType = std::conditional_t< IsImageTypeConst, const PixelType, PixelType > |
Private Member Functions | |
QualifiedIterator (const OptionalAccessorFunctorType &accessorFunctor, QualifiedInternalPixelType *const internalPixelPointer) noexcept | |
Private Attributes | |
QualifiedInternalPixelType * | m_InternalPixelPointer = nullptr |
OptionalAccessorFunctorType | m_OptionalAccessorFunctor |
Static Private Attributes | |
static constexpr bool | IsImageTypeConst = std::is_const_v<QualifiedImageType> |
using itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::difference_type = ptrdiff_t |
Definition at line 292 of file itkImageBufferRange.h.
using itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::iterator_category = std::random_access_iterator_tag |
Definition at line 296 of file itkImageBufferRange.h.
using itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::pointer = QualifiedPixelType * |
Definition at line 295 of file itkImageBufferRange.h.
|
private |
Definition at line 239 of file itkImageBufferRange.h.
|
private |
Definition at line 243 of file itkImageBufferRange.h.
|
private |
Definition at line 246 of file itkImageBufferRange.h.
using itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::reference = std::conditional_t<SupportsDirectPixelAccess, QualifiedPixelType &, PixelProxy<IsImageTypeConst> > |
Definition at line 294 of file itkImageBufferRange.h.
using itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::value_type = PixelType |
Definition at line 293 of file itkImageBufferRange.h.
|
inlineprivatenoexcept |
Definition at line 282 of file itkImageBufferRange.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."
|
inlinenoexcept |
Constructor for implicit conversion from non-const to const iterator.
Definition at line 311 of file itkImageBufferRange.h.
|
inlinenoexcept |
Returns a reference to the current pixel.
Definition at line 322 of file itkImageBufferRange.h.
References itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::m_InternalPixelPointer, and itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::m_OptionalAccessorFunctor.
|
inlinenoexcept |
Prefix increment ('++it').
Definition at line 334 of file itkImageBufferRange.h.
References itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::m_InternalPixelPointer.
|
inlinenoexcept |
Postfix increment ('it++').
Definition at line 346 of file itkImageBufferRange.h.
|
inlinenoexcept |
Prefix decrement ('–it').
Definition at line 357 of file itkImageBufferRange.h.
References itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::m_InternalPixelPointer.
|
inlinenoexcept |
Postfix increment ('it–').
Definition at line 369 of file itkImageBufferRange.h.
|
inlinenoexcept |
Returns it[n] for iterator 'it' and integer value 'n'.
Definition at line 484 of file itkImageBufferRange.h.
Definition at line 236 of file itkImageBufferRange.h.
|
friend |
Returns (it1 != it2) for iterators it1 and it2.
Definition at line 390 of file itkImageBufferRange.h.
|
friend |
Returns (n + it) for iterator 'it' and integer value 'n'.
Definition at line 468 of file itkImageBufferRange.h.
|
friend |
Returns (it + n) for iterator 'it' and integer value 'n'.
Definition at line 460 of file itkImageBufferRange.h.
|
friend |
Does (it += d) for iterator 'it' and integer value 'n'.
Definition at line 434 of file itkImageBufferRange.h.
|
friend |
Returns (it1 - it2) for iterators it1 and it2.
Definition at line 452 of file itkImageBufferRange.h.
|
friend |
Returns (it - n) for iterator 'it' and integer value 'n'.
Definition at line 476 of file itkImageBufferRange.h.
|
friend |
Does (it -= d) for iterator 'it' and integer value 'n'.
Definition at line 443 of file itkImageBufferRange.h.
|
friend |
Returns (it1 < it2) for iterators it1 and it2.
Definition at line 399 of file itkImageBufferRange.h.
|
friend |
Returns (it1 <= it2) for iterators it1 and it2.
Definition at line 416 of file itkImageBufferRange.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 382 of file itkImageBufferRange.h.
|
friend |
Returns (it1 > it2) for iterators it1 and it2.
Definition at line 407 of file itkImageBufferRange.h.
|
friend |
Returns (it1 >= it2) for iterators it1 and it2.
Definition at line 425 of file itkImageBufferRange.h.
Definition at line 232 of file itkImageBufferRange.h.
|
staticconstexprprivate |
Definition at line 241 of file itkImageBufferRange.h.
|
private |
Definition at line 278 of file itkImageBufferRange.h.
Referenced by itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::operator*(), itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::operator++(), and itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::operator--().
|
private |
Definition at line 275 of file itkImageBufferRange.h.
Referenced by itk::ImageBufferRange< TImage >::QualifiedIterator< VIsConst >::operator*().