mln::extension_val< I > Class Template Reference
[Domain morphers]

Extends the domain of an image with a value. More...

#include <extension_val.hh>

Inherits image_identity< I, I::domain_t, extension_val< I > >.

List of all members.

Public Types

typedef I::value rvalue
 Return type of read-only access.
typedef extension_val
< tag::image_< I > > 
skeleton
 Skeleton.
typedef I::value value
 Image value type.

Public Member Functions

void change_extension (const typename I::value &val)
 Change the value of the extension domain.
const I::value & extension () const
 Read-only access to the value of the extension domain.
 extension_val (I &ima, const typename I::value &val)
 Constructor from an image ima and a value val.
 extension_val ()
 Constructor without argument.
template<typename P >
bool has (const P &p) const
 Test if p is valid. It returns always true.
internal::morpher_lvalue_< I >::ret operator() (const typename I::psite &p)
 Read-write access to the image value located at site p.
I::value operator() (const typename I::psite &p) const
 Read-only access to the image value located at site p;.


Detailed Description

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

Extends the domain of an image with a value.

Member Typedef Documentation

template<typename I>
typedef I ::value mln::extension_val< I >::rvalue

Return type of read-only access.

template<typename I>
typedef extension_val< tag::image_<I> > mln::extension_val< I >::skeleton

Skeleton.

template<typename I>
typedef I ::value mln::extension_val< I >::value

Image value type.


Constructor & Destructor Documentation

template<typename I >
mln::extension_val< I >::extension_val (  )  [inline]

Constructor without argument.

template<typename I >
mln::extension_val< I >::extension_val ( I &  ima,
const typename I::value &  val 
) [inline]

Constructor from an image ima and a value val.


Member Function Documentation

template<typename I >
void mln::extension_val< I >::change_extension ( const typename I::value &  val  )  [inline]

Change the value of the extension domain.

template<typename I >
const I::value & mln::extension_val< I >::extension (  )  const [inline]

Read-only access to the value of the extension domain.

template<typename I >
template<typename P >
bool mln::extension_val< I >::has ( const P &  p  )  const [inline]

Test if p is valid. It returns always true.

template<typename I >
internal::morpher_lvalue_< I >::ret mln::extension_val< I >::operator() ( const typename I::psite &  p  )  [inline]

Read-write access to the image value located at site p.

template<typename I >
I::value mln::extension_val< I >::operator() ( const typename I::psite &  p  )  const [inline]

Read-only access to the image value located at site p;.


Generated on Tue Jul 14 16:32:18 2009 for Milena (Olena) by  doxygen 1.5.9