$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::flat_image< T, S > Struct Template Reference

#include <mln/core/image/flat_image.hh>

Public Member Functions

 flat_image ()
 flat_image (const T &val, const S &pset)
void destroy ()
const S & domain () const
bool has (const psite &p) const
bool has (const typename S::psite &p) const
void init_ (const T &val, const S &pset)
bool is_valid () const
std::size_t nsites () const
const Toperator() (const typename S::psite &p) const
Toperator() (const typename S::psite &p)
const Tvalue_ () const
Tvalue_ ()
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const

Protected Attributes

mln::util::tracked_ptr
< internal::data< flat_image
< T, S > > > 
data_

Public Types

typedef S::bkd_piter bkd_piter
typedef Image< void > category
typedef S domain_t
typedef flat_image< T, S > exact_t
typedef S::fwd_piter fwd_piter
typedef Tlvalue
typedef fwd_piter piter
typedef S::psite psite
typedef const Trvalue
typedef S::site site
typedef flat_image
< tag::value_< T >
, tag::domain_< S > > 
skeleton
typedef mln::value::set< Tt_eligible_values_set
typedef mln::value::set
< typename
mln::value::super_value< T >
::ret
t_values_space
typedef T value

Detailed Description

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

Image with a single value.

Definition at line 108 of file flat_image.hh.

Constructor & Destructor Documentation

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

Constructor without argument.

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

Constructor.

Member Function Documentation

void mln::internal::image_base< T, S, flat_image< T, S > >::destroy ( )
inherited

Detach data from an image (free it if nobody else hold it).

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

Give the definition domain.

bool mln::internal::image_base< T, S, flat_image< T, S > >::has ( const psite p) const
inherited

Test if p belongs to the image domain.

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

Test if p is valid: always return true.

template<typename T, typename S>
void mln::flat_image< T, S >::init_ ( const T val,
const S &  pset 
)

INTERNAL_API Initialization.

bool mln::internal::image_base< T, S, flat_image< T, S > >::is_valid ( ) const
inherited

Test if this image has been initialized; default impl.

std::size_t mln::internal::image_base< T, S, flat_image< T, S > >::nsites ( ) const
inherited

Give the number of sites of the image domain.

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

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

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

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

template<typename T, typename S>
const T& mln::flat_image< T, S >::value_ ( ) const

INTERNAL_API Specific methods.

template<typename T, typename S>
T& mln::flat_image< T, S >::value_ ( )
const t_eligible_values_set& mln::internal::image_base< T, S, flat_image< T, S > >::values_eligible ( ) const
inherited
const t_values_space& mln::internal::image_base< T, S, flat_image< T, S > >::values_space ( ) const
inherited

Return the value space of the image.

Member Data Documentation

mln::util::tracked_ptr< internal::data<flat_image< T, S > > > mln::internal::image_base< T, S, flat_image< T, S > >::data_
protectedinherited

INTERNAL_API Internal data, sharable by several images.

Definition at line 176 of file core/internal/image_base.hh.

Member Typedef Documentation

typedef S ::bkd_piter mln::internal::image_base< T, S, flat_image< T, S > >::bkd_piter
inherited

Backward Site_Iterator associated type.

Definition at line 122 of file core/internal/image_base.hh.

typedef Image<void> mln::Image< flat_image< T, S > >::category
inherited

Definition at line 78 of file core/concept/image.hh.

typedef S mln::internal::image_base< T, S, flat_image< T, S > >::domain_t
inherited

Site_Set associated type.

Definition at line 109 of file core/internal/image_base.hh.

typedef flat_image< T, S > mln::Object< flat_image< T, S > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef S ::fwd_piter mln::internal::image_base< T, S, flat_image< T, S > >::fwd_piter
inherited

Forward Site_Iterator associated type.

Definition at line 119 of file core/internal/image_base.hh.

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

Return type of read-write access.

Definition at line 121 of file flat_image.hh.

typedef fwd_piter mln::internal::image_base< T, S, flat_image< T, S > >::piter
inherited

Site_Iterator associated type; default definition is fwd_piter.

Definition at line 127 of file core/internal/image_base.hh.

typedef S ::psite mln::internal::image_base< T, S, flat_image< T, S > >::psite
inherited

Point_Site associated type.

Definition at line 112 of file core/internal/image_base.hh.

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

Return type of read-only access.

Definition at line 118 of file flat_image.hh.

typedef S ::site mln::internal::image_base< T, S, flat_image< T, S > >::site
inherited

Site associated type.

Definition at line 115 of file core/internal/image_base.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 111 of file flat_image.hh.

Eligible-value-set associated type.

Definition at line 95 of file core/internal/image_base.hh.

Value space associated type.

Definition at line 102 of file core/internal/image_base.hh.

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

Value associated type.

Definition at line 115 of file flat_image.hh.