ome-files
0.5.0
|
Iterator for IFDs contained within a TIFF. More...
#include <ome/files/tiff/TIFF.h>
Public Member Functions | |
IFDIterator () | |
Default constructor. More... | |
IFDIterator (std::shared_ptr< IFD > &ifd) | |
Construct with an initial starting position. More... | |
template<class OtherValue > | |
IFDIterator (const IFDIterator< OtherValue > &rhs) | |
Construct from an existing iterator. More... | |
Private Member Functions | |
void | increment () |
Increment the iterator by one position. More... | |
bool | equal (IFDIterator const &rhs) const |
Check for equality. More... | |
std::shared_ptr< Value > & | dereference () const |
Dereference the iterator. More... | |
template<> | |
void | increment () |
Increment the iterator by one position. More... | |
template<> | |
void | increment () |
Increment the iterator by one position. More... | |
Private Attributes | |
std::shared_ptr< Value > | pos |
The current position. More... | |
Friends | |
class | boost::iterator_core_access |
IFD iterator internals uses internal TIFF state. | |
template<class > | |
class | IFDIterator |
IFD iterator uses internal TIFF state. | |
Iterator for IFDs contained within a TIFF.
|
inline |
Default constructor.
The position will be null.
|
inline |
Construct with an initial starting position.
The position will be the provided descriptor.
ifd | the descriptor to point to. |
|
inline |
Construct from an existing iterator.
rhs | the iterator to copy. |
|
inlineprivate |
Dereference the iterator.
References ome::files::tiff::IFDIterator< Value >::pos.
|
inlineprivate |
Check for equality.
rhs | the iterator to compare. |
true
if equal, false
otherwise. References ome::files::tiff::IFDIterator< Value >::pos.
|
private |
Increment the iterator by one position.
|
private |
Increment the iterator by one position.
|
private |
Increment the iterator by one position.
|
mutableprivate |
The current position.
It's mutable to allow const and non-const access to the underlying descriptor via const and non-const iterators.
Referenced by ome::files::tiff::IFDIterator< Value >::dereference(), and ome::files::tiff::IFDIterator< Value >::equal().