Public Types | Public Member Functions | Private Types | Private Member Functions

mln::pixel< I > Struct Template Reference

Generic pixel class. More...

#include <pixel.hh>

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

List of all members.

Public Types

typedef Object< void > category
typedef pixel< I > exact_t

Public Member Functions

void change_to (const typename I::psite &p)
 Change the pixel to the one at point p.
bool is_valid () const
 Test if this pixel is valid.
 operator unsigned () const
 pixel (I &image)
 Constructor.
 pixel (I &image, const typename I::psite &p)
 Constructor.

Private Types

typedef I image
 Image type.
typedef I::lvalue lvalue
 Image lvalue type.
typedef I::rvalue rvalue
 Image rvalue type.
typedef internal::pixel_impl_
< I, pixel< I > > 
super
typedef I::value value
 Image value type.

Private Member Functions

value ** address_ () const
 Address of the current iterator value/pixel.
I & ima () const
 Give the pixel image.
lvalue val ()
 pixel iterator value.
rvalue val () const
 Get the pixel iterator value.

Detailed Description

template<typename I>
struct mln::pixel< I >

Generic pixel class.

The parameter is I the type of the image it belongs to.

Definition at line 50 of file core/pixel.hh.


Member Typedef Documentation

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

Definition at line 174 of file object.hh.

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

Definition at line 173 of file object.hh.

typedef I mln::internal::pixel_impl_< I, pixel< I > >::image [inherited]

Image type.

Definition at line 129 of file pixel_impl.hh.

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

Image lvalue type.

Definition at line 135 of file pixel_impl.hh.

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

Image rvalue type.

Definition at line 138 of file pixel_impl.hh.

template<typename I>
typedef internal::pixel_impl_<I, pixel<I> > mln::pixel< I >::super [private]

Definition at line 67 of file core/pixel.hh.

typedef I ::value mln::internal::pixel_impl_< I, pixel< I > >::value [inherited]

Image value type.

Definition at line 132 of file pixel_impl.hh.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 75 of file core/pixel.hh.

template<typename I >
mln::pixel< I >::pixel ( I &  image,
const typename I::psite &  p 
) [inline]

Constructor.

Definition at line 82 of file core/pixel.hh.

References mln::pixel< I >::change_to().


Member Function Documentation

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

Address of the current iterator value/pixel.

template<typename I >
void mln::pixel< I >::change_to ( const typename I::psite &  p  )  [inline]

Change the pixel to the one at point p.

Definition at line 92 of file core/pixel.hh.

Referenced by mln::pixel< I >::pixel().

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

Give the pixel image.

template<typename I >
bool mln::pixel< I >::is_valid (  )  const [inline]

Test if this pixel is valid.

Definition at line 101 of file core/pixel.hh.

mln::Generalized_Pixel< pixel< I > >::operator unsigned (  )  const [inline, inherited]

Definition at line 65 of file generalized_pixel.hh.

lvalue mln::internal::pixel_impl_< I, pixel< I > >::val (  )  [inherited]
rvalue mln::internal::pixel_impl_< I, pixel< I > >::val (  )  const [inherited]

Get the pixel iterator value.