OTB
9.0.0
Orfeo Toolbox
|
#include <otbZipIterator.h>
Classes | |
struct | PixelListProxy |
Public Member Functions | |
Constructions & Destruction | |
This class follows the rule of 0/5 | |
ZipIterator ()=default | |
~ZipIterator ()=default | |
ZipIterator (ZipIterator const &)=default | |
ZipIterator (ZipIterator &&)=default | |
ZipIterator & | operator= (ZipIterator const &)=default |
ZipIterator & | operator= (ZipIterator &&)=default |
template<bool IsConst_ = std::is_same<ConstOrMutable, ConstTag>::value, class = std::enable_if<IsConst_>> | |
ZipIterator (ZipIterator< ImageIteratorType, MutableTag > const &rhs) | |
template<bool IsConst_ = std::is_same<ConstOrMutable, ConstTag>::value, class = std::enable_if<IsConst_>> | |
ZipIterator (ZipIterator< ImageIteratorType, MutableTag > &&rhs) | |
ZipIterator (Span< ImageType *const > images, RegionType const ®ion) | |
Mutable Iterator Interface | |
template<typename MultiCompPixelType > | |
void | Set (MultiCompPixelType const &p) |
Friends | |
Comparison | |
bool | operator== (ZipIterator const &lhs, ZipIterator const &rhs) |
bool | operator!= (ZipIterator const &lhs, ZipIterator const &rhs) |
bool | operator<= (ZipIterator const &lhs, ZipIterator const &rhs) |
bool | operator< (ZipIterator const &lhs, ZipIterator const &rhs) |
bool | operator>= (ZipIterator const &lhs, ZipIterator const &rhs) |
bool | operator> (ZipIterator const &lhs, ZipIterator const &rhs) |
ITK Constants and Typedefs | |
using | ImageIteratorType = TImageIterator |
using | ImageType = typename TImageIterator::ImageType |
using | Self = ZipIterator |
using | IndexType = typename ImageIteratorType::IndexType |
using | SizeType = typename ImageIteratorType::SizeType |
using | OffsetType = typename ImageIteratorType::OffsetType |
using | RegionType = typename ImageIteratorType::RegionType |
using | PixelContainer = typename ImageIteratorType::PixelContainer |
using | PixelContainerPointer = typename PixelContainer::Pointer |
using | InternalPixelType = typename ImageIteratorType::InternalPixelType |
using | PixelType = typename ImageIteratorType::PixelType |
using | AccessorType = typename ImageIteratorType::AccessorType |
using | AccessorFunctorType = typename ImageIteratorType::AccessorFunctorType |
static constexpr unsigned int | ImageIteratorDimension = ImageIteratorType::ImageIteratorDimension |
itkTypeMacroNoParent (ZipIterator) | |
ITK iterator interface | |
using | ImageIteratorList_t = std::vector< ImageIteratorType > |
auto const & | GetRegion () const |
void | SetRegion (RegionType const ®ion) |
Self & | GoToBegin () |
Self & | GoToEnd () |
bool | IsAtBegin () const |
bool | IsAtEnd () const |
Self & | operator++ () |
Self | operator++ (int)=delete |
PixelListProxy | Get () const |
ScanLine Iterator Interface | |
ImageIteratorList_t | m_iterators |
Self & | NextLine () |
Self & | GoToBeginOfLine () |
Self & | GoToEndOfLine () |
bool | IsAtEndOfLine () const |
Wrapper to present list of iterators as a single iterator.
!m_iterators.empty()
Definition at line 47 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::AccessorFunctorType = typename ImageIteratorType::AccessorFunctorType |
Iterator type for zipped iterators.
Definition at line 98 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::AccessorType = typename ImageIteratorType::AccessorType |
Accessor type that convert data between internal and external representations.
Definition at line 97 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::ImageIteratorList_t = std::vector<ImageIteratorType> |
Internal typedef to the type holding the list of ITK iterators.
Definition at line 250 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::ImageIteratorType = TImageIterator |
Iterator type for zipped iterators.
Definition at line 55 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::ImageType = typename TImageIterator::ImageType |
Image type alias support
Definition at line 58 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::IndexType = typename ImageIteratorType::IndexType |
Index type alias support
Definition at line 72 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::InternalPixelType = typename ImageIteratorType::InternalPixelType |
Internal Pixel Type
Definition at line 90 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::OffsetType = typename ImageIteratorType::OffsetType |
Offset type alias support
Definition at line 78 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::PixelContainer = typename ImageIteratorType::PixelContainer |
PixelContainer type alias support. Used to refer to the container for the pixel data. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc.
Definition at line 86 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::PixelContainerPointer = typename PixelContainer::Pointer |
Iterator type for zipped iterators.
Definition at line 87 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::PixelType = typename ImageIteratorType::PixelType |
External Pixel Type
Definition at line 93 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::RegionType = typename ImageIteratorType::RegionType |
Region type alias support
Definition at line 81 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::Self = ZipIterator |
Iterator type for zipped iterators.
Definition at line 66 of file otbZipIterator.h.
using otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::SizeType = typename ImageIteratorType::SizeType |
Size type alias support
Definition at line 75 of file otbZipIterator.h.
|
default |
Conversion constructor. Converts from mutable to const iterator
|
default |
Conversion constructor. Converts from mutable to const iterator
|
default |
Conversion constructor. Converts from mutable to const iterator
|
default |
Conversion constructor. Converts from mutable to const iterator
|
inline |
Conversion constructor. Converts from mutable to const iterator
Definition at line 119 of file otbZipIterator.h.
|
inline |
Conversion move constructor. Move converts from mutable to const iterator
Definition at line 128 of file otbZipIterator.h.
|
inline |
Init Constructor. Constructs a ZipIterator
from a list of Images and a Region.
[in,out] | images | List of images |
[in] | region | Region to iterate over |
Definition at line 139 of file otbZipIterator.h.
References otb::Span< T >::empty(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators, and otb::Span< T >::size().
|
inline |
Fetches the value of the current pixel.
Definition at line 351 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
inline |
Fetch the region iterated by the iterator.
Definition at line 191 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
inline |
Moves the iterator to the begin of the region iterated.
Definition at line 206 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBegin(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBegin().
|
inline |
Moves iterator to the beginning of the current line.
Definition at line 386 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBeginOfLine(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBeginOfLine().
|
inline |
Moves the iterator to the end of the region iterated.
Definition at line 213 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEnd(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEnd().
|
inline |
Moves iterator to the end of the current line.
Definition at line 393 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEndOfLine(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEndOfLine().
|
inline |
Tells whether the iterator is at the begin of the region iterated.
Definition at line 221 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
inline |
Tells the iterator is at the end of the region iterated.
Definition at line 228 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::operator++().
|
inline |
Tells whether the iterator is a the end of a line.
!m_iterators.empty()
Definition at line 402 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::itkTypeMacroNoParent | ( | ZipIterator< TImageIterator, ConstOrMutable > | ) |
Run-time type information (and related methods).
|
inline |
Moves iterator to next line.
Definition at line 379 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators, and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::NextLine().
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::NextLine().
|
inline |
Pre-increment the iterator. As post-increment is less efficient, it hasn't been provided.
Definition at line 237 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::IsAtEnd(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
delete |
Removed post-increment operator. Please use the preincrement operator!
|
default |
Conversion constructor. Converts from mutable to const iterator
|
default |
Conversion constructor. Converts from mutable to const iterator
|
inline |
Definition at line 360 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
inline |
Set the region iterated by the iterator.
Definition at line 199 of file otbZipIterator.h.
References otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::m_iterators.
|
friend |
Definition at line 163 of file otbZipIterator.h.
|
friend |
Definition at line 173 of file otbZipIterator.h.
|
friend |
Definition at line 166 of file otbZipIterator.h.
|
friend |
Definition at line 155 of file otbZipIterator.h.
|
friend |
Definition at line 182 of file otbZipIterator.h.
|
friend |
Definition at line 180 of file otbZipIterator.h.
|
staticconstexpr |
Dimension of the image the iterator walks. This constant is needed so functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Definition at line 64 of file otbZipIterator.h.
|
private |
Moves iterator to next line.
Definition at line 412 of file otbZipIterator.h.
Referenced by otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::Get(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GetRegion(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBegin(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToBeginOfLine(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEnd(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::GoToEndOfLine(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::IsAtBegin(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::IsAtEnd(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::IsAtEndOfLine(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::NextLine(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::operator++(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::Set(), otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::SetRegion(), and otb::internals::ZipIterator< TImageIterator, ConstOrMutable >::ZipIterator().