mln::value::stack_image< n, I > Struct Template Reference

Stack image class. More...

#include <stack.hh>

Inherits image_value_morpher< I, algebra::vec< n, I::value >, stack_image< n, I > >.

List of all members.

Public Types

typedef I::domain_t domain_t
 Site_Set associated type.
typedef
internal::helper_stack_image_lvalue_
< n, I >::ret 
lvalue
 Return type of read-write access.
typedef I::psite psite
 Point_Site associated type.
typedef value rvalue
 Return type of read-only access.
typedef stack_image< n,
tag::image_< I > > 
skeleton
 Skeleton.
typedef algebra::vec< n,
typename I::value > 
value
 Value associated type.

Public Member Functions

bool is_valid () const
 Test if this image has been initialized.
lvalue operator() (const psite &)
 Read-write access of pixel value at point site p.
rvalue operator() (const psite &p) const
 Read-only access of pixel value at point site p.
 stack_image (const algebra::vec< n, I > &imas)
 Constructors.


Detailed Description

template<unsigned n, typename I>
struct mln::value::stack_image< n, I >

Stack image class.

mln::value::stack_image stores a vector of n images of the same domain.

The parameter n is the number of images, I is the type of a stack element. Acces a value will compute a vector which contains n coordinates : [stack[0](p), stack[1](p), ... , stack[n](p)]


Member Typedef Documentation

template<unsigned n, typename I>
typedef I ::domain_t mln::value::stack_image< n, I >::domain_t

Site_Set associated type.

template<unsigned n, typename I>
typedef internal::helper_stack_image_lvalue_<n,I>::ret mln::value::stack_image< n, I >::lvalue

Return type of read-write access.

template<unsigned n, typename I>
typedef I ::psite mln::value::stack_image< n, I >::psite

Point_Site associated type.

template<unsigned n, typename I>
typedef value mln::value::stack_image< n, I >::rvalue

Return type of read-only access.

The rvalue type is not a const reference, since the value type is built on the fly, and return by value (copy).

template<unsigned n, typename I>
typedef stack_image< n, tag::image_<I> > mln::value::stack_image< n, I >::skeleton

Skeleton.

template<unsigned n, typename I>
typedef algebra::vec<n, typename I ::value> mln::value::stack_image< n, I >::value

Value associated type.


Constructor & Destructor Documentation

template<unsigned n, typename I>
mln::value::stack_image< n, I >::stack_image ( const algebra::vec< n, I > &  imas  )  [inline]

Constructors.


Member Function Documentation

template<unsigned n, typename I >
bool mln::value::stack_image< n, I >::is_valid (  )  const [inline]

Test if this image has been initialized.

template<unsigned n, typename I >
stack_image< n, I >::lvalue mln::value::stack_image< n, I >::operator() ( const psite p  )  [inline]

Read-write access of pixel value at point site p.

template<unsigned n, typename I >
stack_image< n, I >::rvalue mln::value::stack_image< n, I >::operator() ( const psite p  )  const [inline]

Read-only access of pixel value at point site p.


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