Public Types | Public Member Functions | Protected Attributes

mln::unproject_image< I, D, F > Struct Template Reference
[Domain morphers]

Un-projects an image. More...

#include <unproject_image.hh>

Inheritance diagram for mln::unproject_image< I, D, F >:
Inheritance graph

List of all members.

Public Types

typedef D::bkd_piter bkd_piter
 Backward Site_Iterator associated type.
typedef Image< void > category
typedef I delegatee
 Delegatee associated type.
typedef D domain_t
 Site_Set associated type.
typedef unproject_image< I, D, F > exact_t
typedef D::fwd_piter fwd_piter
 Forward Site_Iterator associated type.
typedef
internal::morpher_lvalue_< I >
::ret 
lvalue
 Return type of read-write access.
typedef fwd_piter piter
 Site_Iterator associated type; default definition is fwd_piter.
typedef D::psite psite
 Point_Site associated type.
typedef I::rvalue rvalue
 Return type of read-only access.
typedef D::site site
 Site associated type.
typedef void skeleton
typedef mln::value::set< I::value > t_eligible_values_set
 Eligible-value-set associated type.
typedef mln::value::set
< typename
mln::value::super_value
< I::value >::ret
t_values_space
 Value space associated type.
typedef I unmorph
 Unmorph image associated type.
typedef I::value value
 Value associated type.

Public Member Functions

mln::metal::const_< I >::retdelegatee_ () const
 Return the delegatee_ pointer; default code.
I * delegatee_ ()
 Return the delegatee_ pointer (non-const version); default code.
void destroy ()
 Detach data from an image (free it if nobody else hold it).
const D & domain () const
 Give the definition domain.
bool has (const psite &p) const
 Test if p belongs to the image domain.
const util::tracked_ptr
< internal::data
< unproject_image< I, D, F > > > & 
hook_data_ () const
 Hook to the image data.
const void * id_ () const
 Give an identifier of this image.
unsigned index_of_point (const P &p) const
 Give the offset of the site p.
void init_ (I &ima, const D &dom, const F &f)
bool is_valid () const
 Test if this image has been initialized; default impl.
std::size_t nsites () const
 Give the number of sites of the image domain.
I::rvalue operator() (const typename D::psite &p) const
 Read-only access to the image value located at point p.
internal::morpher_lvalue_< I >::ret operator() (const typename D::psite &p)
 Read-write access to the image value located at point p.
unproject_image< I, D, F > & rw ()
 State that the morpher is writable.
mln::metal::const_< I >::retunmorph_ () const
 Give the morphed image (const version).
I & unmorph_ ()
 Give the morphed image (mutable version).
 unproject_image ()
 Constructor without argument.
 unproject_image (I &ima, const D &dom, const F &f)
 Constructor from an image ima, a domain dom, and a function f.
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const
 Return the value space of the image.

Protected Attributes

util::tracked_ptr
< internal::data
< unproject_image< I, D, F > > > 
data_

Detailed Description

template<typename I, typename D, typename F>
struct mln::unproject_image< I, D, F >

Un-projects an image.

Definition at line 96 of file unproject_image.hh.


Member Typedef Documentation

typedef D ::bkd_piter mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::bkd_piter [inherited]

Backward Site_Iterator associated type.

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

typedef Image<void> mln::Image< unproject_image< I, D, F > >::category [inherited]

Reimplemented from mln::Object< unproject_image< I, D, F > >.

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

typedef I mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::delegatee [inherited]

Delegatee associated type.

Definition at line 57 of file image_morpher.hh.

typedef D mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::domain_t [inherited]

Site_Set associated type.

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

typedef unproject_image< I, D, F > mln::Object< unproject_image< I, D, F > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef D ::fwd_piter mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::fwd_piter [inherited]

Forward Site_Iterator associated type.

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

Return type of read-write access.

Definition at line 59 of file image_domain_morpher.hh.

typedef fwd_piter mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::piter [inherited]

Site_Iterator associated type; default definition is fwd_piter.

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

typedef D ::psite mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::psite [inherited]

Point_Site associated type.

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

typedef I ::rvalue mln::internal::image_domain_morpher< I, D , unproject_image< I, D, F > >::rvalue [inherited]

Return type of read-only access.

Definition at line 56 of file image_domain_morpher.hh.

typedef D ::site mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::site [inherited]

Site associated type.

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

template<typename I , typename D , typename F >
typedef void mln::unproject_image< I, D, F >::skeleton

Definition at line 101 of file unproject_image.hh.

typedef mln::value::set<I::value > mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::t_eligible_values_set [inherited]

Eligible-value-set associated type.

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

typedef mln::value::set< typename mln::value::super_value<I::value >::ret > mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::t_values_space [inherited]

Value space associated type.

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

typedef I mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::unmorph [inherited]

Unmorph image associated type.

Definition at line 68 of file image_morpher.hh.

typedef I::value mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::value [inherited]

Value associated type.

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


Constructor & Destructor Documentation

template<typename I , typename D , typename F >
mln::unproject_image< I, D, F >::unproject_image (  )  [inline]

Constructor without argument.

Definition at line 182 of file unproject_image.hh.

template<typename I , typename D , typename F >
mln::unproject_image< I, D, F >::unproject_image ( I &  ima,
const D &  dom,
const F &  f 
) [inline]

Constructor from an image ima, a domain dom, and a function f.

Definition at line 188 of file unproject_image.hh.

References mln::unproject_image< I, D, F >::init_().


Member Function Documentation

mln::metal::const_< I >::ret* mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::delegatee_ (  )  const [inherited]

Return the delegatee_ pointer; default code.

I* mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::delegatee_ (  )  [inherited]

Return the delegatee_ pointer (non-const version); default code.

void mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::destroy (  )  [inherited]

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

template<typename I , typename D , typename F >
const D & mln::unproject_image< I, D, F >::domain (  )  const [inline]
bool mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::has ( const psite p  )  const [inherited]

Test if p belongs to the image domain.

const util::tracked_ptr< internal::data<unproject_image< I, D, F > > >& mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::hook_data_ (  )  const [inherited]

Hook to the image data.

const void* mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::id_ (  )  const [inherited]

Give an identifier of this image.

When several image variables designate the same image, they share the same identifier.

unsigned mln::internal::check::image_fastest_< unproject_image< I, D, F > , mln::metal::equal< mln_trait_image_speed(unproject_image< I, D, F >), trait::image::speed::fastest >::eval >::index_of_point ( const P &  p  )  const [inherited]

Give the offset of the site p.

Parameters:
[in] p A site.
Warning:
This method is final.
Precondition:
The image has to be initialized and to own the point p.
Postcondition:
p == point_at_index(result)
template<typename I , typename D , typename F >
void mln::unproject_image< I, D, F >::init_ ( I &  ima,
const D &  dom,
const F &  f 
) [inline]
bool mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::is_valid (  )  const [inherited]
std::size_t mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::nsites (  )  const [inherited]

Give the number of sites of the image domain.

template<typename I , typename D , typename F >
internal::morpher_lvalue_< I >::ret mln::unproject_image< I, D, F >::operator() ( const typename D::psite &  p  )  [inline]

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

Reimplemented from mln::internal::image_domain_morpher< I, D, unproject_image< I, D, F > >.

Definition at line 225 of file unproject_image.hh.

template<typename I , typename D , typename F >
I::rvalue mln::unproject_image< I, D, F >::operator() ( const typename D::psite &  p  )  const [inline]

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

Reimplemented from mln::internal::image_domain_morpher< I, D, unproject_image< I, D, F > >.

Definition at line 214 of file unproject_image.hh.

unproject_image< I, D, F > & mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::rw (  )  [inherited]

State that the morpher is writable.

This allows for C++ to use it as a mutable object even if it is a temporary object.

I& mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::unmorph_ (  )  [inherited]

Give the morphed image (mutable version).

mln::metal::const_< I >::ret& mln::internal::image_morpher< I, I::value , D , unproject_image< I, D, F > >::unmorph_ (  )  const [inherited]

Give the morphed image (const version).

const t_eligible_values_set& mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::values_eligible (  )  const [inherited]
const t_values_space& mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::values_space (  )  const [inherited]

Return the value space of the image.


Member Data Documentation

util::tracked_ptr< internal::data<unproject_image< I, D, F > > > mln::internal::image_base< I::value , D , unproject_image< I, D, F > >::data_ [protected, inherited]