ISIS Core Library 0.7.2 (api 3.0.0)
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends

isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE > Class Template Reference

Generic iterator for voxels in Images. More...

#include <image.hpp>

Public Member Functions

 ImageIteratorTemplate (const ImageIteratorTemplate< typename boost::remove_const< CHUNK_TYPE >::type > &src)
 ImageIteratorTemplate ()
 ImageIteratorTemplate (const std::vector< chunk_type * > &_chunks)
bool operator!= (const ThisType &cmp) const
inner_iterator::reference operator* () const
ThisType operator+ (typename ThisType::difference_type n) const
ThisTypeoperator++ ()
ThisType operator++ (int)
ThisTypeoperator+= (typename inner_iterator::difference_type n)
inner_iterator::difference_type operator- (const ThisType &cmp) const
ThisType operator- (typename ThisType::difference_type n) const
ThisTypeoperator-- ()
ThisType operator-- (int)
ThisTypeoperator-= (typename inner_iterator::difference_type n)
inner_iterator::pointer operator-> () const
bool operator< (const ThisType &cmp) const
bool operator<= (const ThisType &cmp) const
bool operator== (const ThisType &cmp) const
bool operator> (const ThisType &cmp) const
bool operator>= (const ThisType &cmp) const
ThisType::reference operator[] (typename inner_iterator::difference_type n) const

Protected Types

typedef CHUNK_TYPE chunk_type
typedef boost::mpl::if_
< boost::is_const< CHUNK_TYPE >
, typename
CHUNK_TYPE::const_iterator,
typename CHUNK_TYPE::iterator >
::type 
inner_iterator
typedef ImageIteratorTemplate
< CHUNK_TYPE > 
ThisType

Protected Member Functions

inner_iterator::difference_type currentDist () const

Protected Attributes

size_t ch_idx
inner_iterator::difference_type ch_len
std::vector< chunk_type * > chunks
inner_iterator current_it

Friends

class ImageIteratorTemplate< const CHUNK_TYPE >

Detailed Description

template<typename CHUNK_TYPE>
class isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >

Generic iterator for voxels in Images.

It automatically jumps from chunk to Chunk. It needs the chunks and the image to be there for to work properly (so don't delete the image, and dont reIndex it), It assumes that all Chunks have the same size (which is a rule for Image as well, so this should be given)

Definition at line 41 of file image.hpp.


Member Typedef Documentation

template<typename CHUNK_TYPE >
typedef CHUNK_TYPE isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::chunk_type [protected]

Definition at line 51 of file image.hpp.

template<typename CHUNK_TYPE >
typedef boost::mpl::if_<boost::is_const<CHUNK_TYPE>, typename CHUNK_TYPE::const_iterator, typename CHUNK_TYPE::iterator>::type isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::inner_iterator [protected]

Definition at line 50 of file image.hpp.

template<typename CHUNK_TYPE >
typedef ImageIteratorTemplate<CHUNK_TYPE> isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ThisType [protected]

Definition at line 52 of file image.hpp.


Constructor & Destructor Documentation

template<typename CHUNK_TYPE >
isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ImageIteratorTemplate ( const ImageIteratorTemplate< typename boost::remove_const< CHUNK_TYPE >::type > &  src) [inline]

Definition at line 71 of file image.hpp.

template<typename CHUNK_TYPE >
isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ImageIteratorTemplate ( ) [inline]

Definition at line 78 of file image.hpp.

template<typename CHUNK_TYPE >
isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ImageIteratorTemplate ( const std::vector< chunk_type * > &  _chunks) [inline, explicit]

Definition at line 82 of file image.hpp.


Member Function Documentation

template<typename CHUNK_TYPE >
inner_iterator::difference_type isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::currentDist ( ) const [inline, protected]

Definition at line 59 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator!= ( const ThisType cmp) const [inline]

Definition at line 116 of file image.hpp.

template<typename CHUNK_TYPE >
inner_iterator::reference isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator* ( ) const [inline]

Definition at line 106 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator+ ( typename ThisType::difference_type  n) const [inline]

Definition at line 147 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType& isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator++ ( ) [inline]

Definition at line 88 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator++ ( int  ) [inline]

Definition at line 95 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType& isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator+= ( typename inner_iterator::difference_type  n) [inline]

Definition at line 154 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator- ( typename ThisType::difference_type  n) const [inline]

Definition at line 150 of file image.hpp.

template<typename CHUNK_TYPE >
inner_iterator::difference_type isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator- ( const ThisType cmp) const [inline]

Definition at line 135 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator-- ( int  ) [inline]

Definition at line 100 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType& isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator-- ( ) [inline]

Definition at line 91 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType& isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator-= ( typename inner_iterator::difference_type  n) [inline]

Definition at line 166 of file image.hpp.

template<typename CHUNK_TYPE >
inner_iterator::pointer isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator-> ( ) const [inline]

Definition at line 109 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator< ( const ThisType cmp) const [inline]

Definition at line 123 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator<= ( const ThisType cmp) const [inline]

Definition at line 131 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator== ( const ThisType cmp) const [inline]

Definition at line 113 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator> ( const ThisType cmp) const [inline]

Definition at line 120 of file image.hpp.

template<typename CHUNK_TYPE >
bool isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator>= ( const ThisType cmp) const [inline]

Definition at line 128 of file image.hpp.

template<typename CHUNK_TYPE >
ThisType::reference isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::operator[] ( typename inner_iterator::difference_type  n) const [inline]

Definition at line 170 of file image.hpp.


Friends And Related Function Documentation

template<typename CHUNK_TYPE >
friend class ImageIteratorTemplate< const CHUNK_TYPE > [friend]

Definition at line 67 of file image.hpp.


Field Documentation

template<typename CHUNK_TYPE >
size_t isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ch_idx [protected]

Definition at line 55 of file image.hpp.

template<typename CHUNK_TYPE >
inner_iterator::difference_type isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::ch_len [protected]

Definition at line 57 of file image.hpp.

template<typename CHUNK_TYPE >
std::vector<chunk_type *> isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::chunks [protected]

Definition at line 54 of file image.hpp.

template<typename CHUNK_TYPE >
inner_iterator isis::data::_internal::ImageIteratorTemplate< CHUNK_TYPE >::current_it [protected]

Definition at line 56 of file image.hpp.


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