Milena (Olena)  User documentation 2.0a Id
mln::flat_image< T, S > Struct Template Reference

Image with a single value. More...

#include <flat_image.hh>

Inherits mln::internal::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 ()
 Constructor without argument.
 flat_image (const T &val, const S &pset)
 Constructor.
bool has (const typename S::psite &p) const
 Test if p is valid: always return true.
const T & operator() (const typename S::psite &p) const
 Read-only access to the image value located at point p.
T & operator() (const typename S::psite &p)
 Read-write 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.

Definition at line 106 of file flat_image.hh.


Member Typedef Documentation

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

Return type of read-write access.

Definition at line 119 of file flat_image.hh.

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

Return type of read-only access.

Definition at line 116 of file flat_image.hh.

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

Skeleton.

Definition at line 109 of file flat_image.hh.

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

Value associated type.

Definition at line 113 of file flat_image.hh.


Constructor & Destructor Documentation

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

Constructor without argument.

Definition at line 192 of file flat_image.hh.

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

Constructor.

Definition at line 198 of file flat_image.hh.


Member Function Documentation

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

Give the definition domain.

Definition at line 215 of file flat_image.hh.

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.

Definition at line 223 of file flat_image.hh.

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.

Definition at line 231 of file flat_image.hh.

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.

Definition at line 240 of file flat_image.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator