Public Types | Public Member Functions | Protected Attributes | Private Types | Private Attributes

mln::bkd_pixter3d< I > Class Template Reference

Backward pixel iterator on a 3-D image with border. More...

#include <pixter3d.hh>

Inheritance diagram for mln::bkd_pixter3d< I >:
Inheritance graph

List of all members.

Public Types

typedef Object< void > category
typedef bkd_pixter3d< I > exact_t
typedef I image
 Image type.
typedef I::lvalue lvalue
 Image lvalue type.
typedef I::rvalue rvalue
 Image rvalue type.
typedef I::value value
 Image value type.

Public Member Functions

value ** address_ () const
 Address of the current iterator value/pixel.
 bkd_pixter3d (I &image)
 Constructor.
I & ima () const
 Give the pixel image.
void next ()
 Go to the next element.
void next_ ()
 Go to the next pixel.
 operator unsigned () const
void start_ ()
 Extra code for start().
rvalue val () const
 Get the pixel iterator value.
lvalue val ()
 pixel iterator value.

void start ()
 ManipulationStart an iteration.
void invalidate ()
 Invalidate the iterator.
bool is_valid () const
 Test if the iterator is valid.

Protected Attributes

I::qlf_value * boi_
 Beginning of the image.
I::qlf_value * eoi_
 End of the image (past-the-end).

Private Types

typedef
internal::backward_pixel_iterator_base_
< I, bkd_pixter3d< I > > 
super_

Private Attributes

I::qlf_value * bor_
 Beginning of the current row.
const unsigned border_x2_
 Twice the size of the image border.
I::qlf_value * bos_
 Beginning of the current slice.
const unsigned next_sli_offset_
 Next slice offset.
const unsigned next_srow_offset_
 Next slice offset for row.
const unsigned row_offset_
 Row offset.
const unsigned sli_offset_
 Slice offset.

Detailed Description

template<typename I>
class mln::bkd_pixter3d< I >

Backward pixel iterator on a 3-D image with border.


Member Typedef Documentation

typedef Object<void> mln::Object< bkd_pixter3d< I > >::category [inherited]
typedef bkd_pixter3d< I > mln::Object< bkd_pixter3d< I > >::exact_t [inherited]
template<typename I >
typedef I mln::bkd_pixter3d< I >::image
typedef I ::lvalue mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::lvalue [inherited]

Image lvalue type.

typedef I ::rvalue mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::rvalue [inherited]

Image rvalue type.

template<typename I >
typedef internal::backward_pixel_iterator_base_< I, bkd_pixter3d<I> > mln::bkd_pixter3d< I >::super_ [private]
typedef I ::value mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::value [inherited]

Image value type.


Constructor & Destructor Documentation

template<typename I >
mln::bkd_pixter3d< I >::bkd_pixter3d ( I &  image  )  [inline]

Constructor.

Parameters:
[in] image The image this pixel iterator is bound to.

Member Function Documentation

value** mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::address_ (  )  const [inherited]

Address of the current iterator value/pixel.

I& mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::ima (  )  const [inherited]

Give the pixel image.

void mln::internal::backward_pixel_iterator_base_< I, bkd_pixter3d< I > >::invalidate (  )  [inherited]

Invalidate the iterator.

bool mln::internal::backward_pixel_iterator_base_< I, bkd_pixter3d< I > >::is_valid (  )  const [inherited]

Test if the iterator is valid.

void mln::Iterator< bkd_pixter3d< I > >::next (  )  [inherited]

Go to the next element.

Warning:
This is a final method; iterator classes should not re-defined this method. The actual "next" operation has to be defined through the next_ method.
Precondition:
The iterator is valid.
template<typename I >
void mln::bkd_pixter3d< I >::next_ (  )  [inline]
mln::Generalized_Pixel< bkd_pixter3d< I > >::operator unsigned (  )  const [inline, inherited]
void mln::internal::backward_pixel_iterator_base_< I, bkd_pixter3d< I > >::start (  )  [inherited]

ManipulationStart an iteration.

template<typename I >
void mln::bkd_pixter3d< I >::start_ (  )  [inline]
rvalue mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::val (  )  const [inherited]

Get the pixel iterator value.

lvalue mln::internal::pixel_impl_< I, bkd_pixter3d< I > >::val (  )  [inherited]

pixel iterator value.


Member Data Documentation

I ::qlf_value* mln::internal::pixel_iterator_base_< I, bkd_pixter3d< I > >::boi_ [protected, inherited]

Beginning of the image.

Referenced by mln::bkd_pixter3d< I >::next_().

template<typename I >
I ::qlf_value* mln::bkd_pixter3d< I >::bor_ [private]

Beginning of the current row.

Referenced by mln::bkd_pixter3d< I >::next_(), and mln::bkd_pixter3d< I >::start_().

template<typename I >
const unsigned mln::bkd_pixter3d< I >::border_x2_ [private]

Twice the size of the image border.

Referenced by mln::bkd_pixter3d< I >::next_().

template<typename I >
I ::qlf_value* mln::bkd_pixter3d< I >::bos_ [private]

Beginning of the current slice.

Referenced by mln::bkd_pixter3d< I >::next_(), and mln::bkd_pixter3d< I >::start_().

I ::qlf_value* mln::internal::pixel_iterator_base_< I, bkd_pixter3d< I > >::eoi_ [protected, inherited]

End of the image (past-the-end).

template<typename I >
const unsigned mln::bkd_pixter3d< I >::next_sli_offset_ [private]

Next slice offset.

Referenced by mln::bkd_pixter3d< I >::next_().

template<typename I >
const unsigned mln::bkd_pixter3d< I >::next_srow_offset_ [private]

Next slice offset for row.

Referenced by mln::bkd_pixter3d< I >::next_().

template<typename I >
const unsigned mln::bkd_pixter3d< I >::row_offset_ [private]

Row offset.

Referenced by mln::bkd_pixter3d< I >::next_().

template<typename I >
const unsigned mln::bkd_pixter3d< I >::sli_offset_ [private]

Slice offset.

Referenced by mln::bkd_pixter3d< I >::next_().