mln::flat_image< T, S > Struct Template Reference
[Basic types]

Image with a single value. More...

#include <flat_image.hh>

Inherits image_primary< T, S, flat_image< T, S > >.

List of all members.

Public Types

typedef T & lvalue
 Return type of read-write access.
typedef const T & rvalue
 Return type of read-only access.
typedef flat_image
< tag::value_< T >
, tag::domain_< S > > 
skeleton
 Skeleton.
typedef T value
 Value associated type.

Public Member Functions

const S & domain () const
 Give the definition domain.
 flat_image (const T &val, const S &pset)
 Constructor.
 flat_image ()
 Constructor without argument.
bool has (const typename S::psite &p) const
 Test if p is valid: always return true.
T & operator() (const typename S::psite &p)
 Read-write access to the image value located at point p.
const T & operator() (const typename S::psite &p) const
 Read-only access to the image value located at point p.


Detailed Description

template<typename T, typename S>
struct mln::flat_image< T, S >

Image with a single value.

Member Typedef Documentation

template<typename T, typename S>
typedef T& mln::flat_image< T, S >::lvalue

Return type of read-write access.

template<typename T, typename S>
typedef const T& mln::flat_image< T, S >::rvalue

Return type of read-only access.

template<typename T, typename S>
typedef flat_image< tag::value_<T>, tag::domain_<S> > mln::flat_image< T, S >::skeleton

Skeleton.

template<typename T, typename S>
typedef T mln::flat_image< T, S >::value

Value associated type.


Constructor & Destructor Documentation

template<typename T , typename S >
mln::flat_image< T, S >::flat_image (  )  [inline]

Constructor without argument.

template<typename T , typename S >
mln::flat_image< T, S >::flat_image ( const T &  val,
const S &  pset 
) [inline]

Constructor.


Member Function Documentation

template<typename T , typename S >
const S & mln::flat_image< T, S >::domain (  )  const [inline]

Give the definition domain.

template<typename T , typename S >
bool mln::flat_image< T, S >::has ( const typename S::psite &  p  )  const [inline]

Test if p is valid: always return true.

template<typename T , typename S >
T & mln::flat_image< T, S >::operator() ( const typename S::psite &  p  )  [inline]

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

template<typename T , typename S >
const T & mln::flat_image< T, S >::operator() ( const typename S::psite &  p  )  const [inline]

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


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