Milena (Olena)  User documentation 2.0a Id
mln::extension_val< I > Class Template Reference

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

#include <extension_val.hh>

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

Definition at line 99 of file extension_val.hh.


Member Typedef Documentation

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

Return type of read-only access.

Definition at line 111 of file extension_val.hh.

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

Skeleton.

Definition at line 105 of file extension_val.hh.

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

Image value type.

Definition at line 108 of file extension_val.hh.


Constructor & Destructor Documentation

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

Constructor without argument.

Definition at line 177 of file extension_val.hh.

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.

Definition at line 183 of file extension_val.hh.


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.

Definition at line 248 of file extension_val.hh.

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

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

Definition at line 239 of file extension_val.hh.

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.

Definition at line 200 of file extension_val.hh.

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

Definition at line 208 of file extension_val.hh.

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.

Definition at line 221 of file extension_val.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator