Public Types | Public Member Functions

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

Definition at line 145 of file stack.hh.


Member Typedef Documentation

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

Site_Set associated type.

Definition at line 154 of file stack.hh.

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.

Definition at line 166 of file stack.hh.

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

Point_Site associated type.

Definition at line 151 of file stack.hh.

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

Definition at line 163 of file stack.hh.

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

Skeleton.

Definition at line 170 of file stack.hh.

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

Value associated type.

Definition at line 157 of file stack.hh.


Constructor & Destructor Documentation

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

Constructors.

Definition at line 236 of file stack.hh.


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.

Definition at line 255 of file stack.hh.

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.

Definition at line 296 of file stack.hh.

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.

Definition at line 277 of file stack.hh.