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.

Definition at line 100 of file pixter3d.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< bkd_pixter3d< I > >::category [inherited]

Definition at line 174 of file object.hh.

typedef bkd_pixter3d< I > mln::Object< bkd_pixter3d< I > >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename I >
typedef I mln::bkd_pixter3d< I >::image

Image type.

Reimplemented from mln::internal::pixel_impl_< I, bkd_pixter3d< I > >.

Definition at line 107 of file pixter3d.hh.

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

Image lvalue type.

Definition at line 135 of file pixel_impl.hh.

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

Image rvalue type.

Definition at line 138 of file pixel_impl.hh.

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.

Definition at line 132 of file pixel_impl.hh.


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.

Definition at line 207 of file pixter3d.hh.


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]

Definition at line 65 of file generalized_pixel.hh.

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.

Definition at line 62 of file pixel_iterator_base.hh.

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

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

Beginning of the current row.

Definition at line 128 of file pixter3d.hh.

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.

Definition at line 122 of file pixter3d.hh.

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

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

Beginning of the current slice.

Definition at line 140 of file pixter3d.hh.

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).

Definition at line 65 of file pixel_iterator_base.hh.

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

Next slice offset.

Definition at line 131 of file pixter3d.hh.

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.

Definition at line 134 of file pixter3d.hh.

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

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

Row offset.

Definition at line 125 of file pixter3d.hh.

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

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

Slice offset.

Definition at line 137 of file pixter3d.hh.

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