bioformats  5.1.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ome::bioformats::tiff::IFDIterator< Value > Class Template Reference

Iterator for IFDs contained within a TIFF. More...

#include <ome/bioformats/tiff/TIFF.h>

+ Inheritance diagram for ome::bioformats::tiff::IFDIterator< Value >:
+ Collaboration diagram for ome::bioformats::tiff::IFDIterator< Value >:

Public Member Functions

 IFDIterator ()
 Default constructor. More...
 
 IFDIterator (ome::compat::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...
 
ome::compat::shared_ptr< Value > & dereference () const
 Dereference the iterator. More...
 
template<>
void increment ()
 
template<>
void increment ()
 

Private Attributes

ome::compat::shared_ptr< Valuepos
 The current position. More...
 

Friends

class boost::iterator_core_access
 
template<class >
class IFDIterator
 

Detailed Description

template<typename Value>
class ome::bioformats::tiff::IFDIterator< Value >

Iterator for IFDs contained within a TIFF.

Constructor & Destructor Documentation

template<typename Value>
ome::bioformats::tiff::IFDIterator< Value >::IFDIterator ( )
inline

Default constructor.

The position will be null.

template<typename Value>
ome::bioformats::tiff::IFDIterator< Value >::IFDIterator ( ome::compat::shared_ptr< IFD > &  ifd)
inline

Construct with an initial starting position.

The position will be the provided descriptor.

Parameters
ifdthe descriptor to point to.
template<typename Value>
template<class OtherValue >
ome::bioformats::tiff::IFDIterator< Value >::IFDIterator ( const IFDIterator< OtherValue > &  rhs)
inline

Construct from an existing iterator.

Parameters
rhsthe iterator to copy.

Member Function Documentation

template<typename Value>
ome::compat::shared_ptr<Value>& ome::bioformats::tiff::IFDIterator< Value >::dereference ( ) const
inlineprivate

Dereference the iterator.

Returns
a reference to currently referenced descriptor.

References ome::bioformats::tiff::IFDIterator< Value >::pos.

template<typename Value>
bool ome::bioformats::tiff::IFDIterator< Value >::equal ( IFDIterator< Value > const &  rhs) const
inlineprivate

Check for equality.

Parameters
rhsthe iterator to compare.
Returns
true if equal, false otherwise.

References ome::bioformats::tiff::IFDIterator< Value >::pos.

template<>
void ome::bioformats::tiff::IFDIterator< IFD >::increment ( )
private
Note
This isn't inlined because it requires access to the IFD declarations, which can't be included here to avoid dependency loops.
template<>
void ome::bioformats::tiff::IFDIterator< const IFD >::increment ( )
private
Note
This isn't inlined because it requires access to the IFD declarations, which can't be included here to avoid dependency loops.
template<typename Value>
void ome::bioformats::tiff::IFDIterator< Value >::increment ( )
private

Increment the iterator by one position.

Note
This isn't inlined because it requires access to the IFD declarations, which can't be included here to avoid dependency loops.

Member Data Documentation

template<typename Value>
ome::compat::shared_ptr<Value> ome::bioformats::tiff::IFDIterator< Value >::pos
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::bioformats::tiff::IFDIterator< Value >::dereference(), and ome::bioformats::tiff::IFDIterator< Value >::equal().


The documentation for this class was generated from the following file: