#include <itkIndexRange.h>
Definition at line 84 of file itkIndexRange.h.
Collaboration diagram for itk::IndexRange< VDimension, VBeginAtZero >::const_iterator:Classes | |
| struct | ZeroIndex |
Public Types | |
| using | difference_type = ptrdiff_t |
| using | iterator_category = std::bidirectional_iterator_tag |
| using | pointer = const IndexType * |
| using | reference = const IndexType & |
| using | value_type = IndexType |
Public Member Functions | |
| const_iterator ()=default | |
| constexpr reference | operator* () const noexcept |
| constexpr const_iterator & | operator++ () noexcept |
| constexpr const_iterator | operator++ (int) noexcept |
| constexpr const_iterator & | operator-- () noexcept |
| constexpr const_iterator | operator-- (int) noexcept |
| constexpr pointer | operator-> () const noexcept |
Private Types | |
| using | MinIndexType = std::conditional_t<VBeginAtZero, ZeroIndex, IndexType> |
Private Member Functions | |
| constexpr | const_iterator (const IndexType &index, const MinIndexType &minIndex, const IndexType &maxIndex, const vcl_size_t position) noexcept |
Private Attributes | |
| IndexType | m_Index |
| IndexType | m_MaxIndex |
| MinIndexType | m_MinIndex |
| vcl_size_t | m_Position {} |
Friends | |
| class | IndexRange |
| bool | operator!= (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| constexpr bool | operator< (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| constexpr bool | operator<= (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| bool | operator== (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| constexpr bool | operator> (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| constexpr bool | operator>= (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| using itk::IndexRange< VDimension, VBeginAtZero >::const_iterator::difference_type = ptrdiff_t |
Definition at line 88 of file itkIndexRange.h.
| using itk::IndexRange< VDimension, VBeginAtZero >::const_iterator::iterator_category = std::bidirectional_iterator_tag |
Definition at line 92 of file itkIndexRange.h.
|
private |
Definition at line 269 of file itkIndexRange.h.
| using itk::IndexRange< VDimension, VBeginAtZero >::const_iterator::pointer = const IndexType * |
Definition at line 91 of file itkIndexRange.h.
| using itk::IndexRange< VDimension, VBeginAtZero >::const_iterator::reference = const IndexType & |
Definition at line 90 of file itkIndexRange.h.
| using itk::IndexRange< VDimension, VBeginAtZero >::const_iterator::value_type = IndexType |
Definition at line 89 of file itkIndexRange.h.
|
default |
Default-constructor, as required for any C++11 Forward Iterator.
Referenced by operator!=, operator<, operator<=, operator==, operator>, and operator>=.
|
inlineconstexprprivatenoexcept |
Definition at line 272 of file itkIndexRange.h.
|
inlineconstexprnoexcept |
Returns a reference to the current index.
Definition at line 104 of file itkIndexRange.h.
References m_Index.
|
inlineconstexprnoexcept |
Prefix increment ('++it').
Definition at line 120 of file itkIndexRange.h.
References m_Index, m_MaxIndex, m_MinIndex, and m_Position.
|
inlineconstexprnoexcept |
Postfix increment ('it++').
Definition at line 145 of file itkIndexRange.h.
|
inlineconstexprnoexcept |
Prefix decrement ('–it').
Definition at line 155 of file itkIndexRange.h.
References m_Index, m_MaxIndex, m_MinIndex, and m_Position.
|
inlineconstexprnoexcept |
Postfix increment ('it–').
Definition at line 179 of file itkIndexRange.h.
|
inlineconstexprnoexcept |
Returns a pointer to the current index.
Definition at line 112 of file itkIndexRange.h.
|
friend |
|
friend |
Returns (it1 != it2) for iterators it1 and it2.
Definition at line 203 of file itkIndexRange.h.
References const_iterator().
|
friend |
Returns (it1 < it2) for iterators it1 and it2.
Definition at line 211 of file itkIndexRange.h.
References const_iterator().
|
friend |
Returns (it1 <= it2) for iterators it1 and it2.
Definition at line 228 of file itkIndexRange.h.
References const_iterator().
|
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 191 of file itkIndexRange.h.
References const_iterator().
|
friend |
Returns (it1 > it2) for iterators it1 and it2.
Definition at line 220 of file itkIndexRange.h.
References const_iterator().
|
friend |
Returns (it1 >= it2) for iterators it1 and it2.
Definition at line 238 of file itkIndexRange.h.
References const_iterator().
|
private |
Definition at line 288 of file itkIndexRange.h.
Referenced by operator*(), operator++(), and operator--().
|
private |
Definition at line 294 of file itkIndexRange.h.
Referenced by operator++(), and operator--().
|
private |
Definition at line 291 of file itkIndexRange.h.
Referenced by operator++(), and operator--().
|
private |
Definition at line 298 of file itkIndexRange.h.
Referenced by operator++(), and operator--().