oln::morpher::iter_morpher< SrcType, IterType, Exact > Struct Template Reference

Inheritance diagram for oln::morpher::iter_morpher< SrcType, IterType, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::morpher::iter_morpher< SrcType, IterType, Exact >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef iter_morpher< SrcType,
IterType, Exact > 
self_type
 The self type.
typedef image_id< self_type
>::exact_type 
exact_type
 The exact type of the morpher.
typedef abstract::generic_morpher<
SrcType, exact_type
super_type
 The upper class.
typedef image_id< exact_type
>::iter_type 
iter_type
 The morpher iterator type.
typedef image_id< exact_type
>::value_type 
value_type
 The morpher value type.
typedef image_id< exact_type
>::point_type 
point_type
 The morpher point type.

Public Member Functions

 iter_morpher (const SrcType &ima)
 Construct the iter morpher with an image ima.
 iter_morpher (const self_type &r)
 Construct the iter morpher with another iter morpher.
 iter_morpher ()
 Empty constructor.
self_typeassign (self_type &rhs)
value_typeat (const point_type &p)
 Return the stored value at the point.
const value_type at (const point_type &p) const
 Return the stored value at the point.

Static Public Member Functions

static std::string name ()
 Useful to debug.

Detailed Description

template<class SrcType, class IterType, class Exact>
struct oln::morpher::iter_morpher< SrcType, IterType, Exact >

Definition at line 81 of file iter_morpher.hh.


Constructor & Destructor Documentation

template<class SrcType, class IterType, class Exact>
oln::morpher::iter_morpher< SrcType, IterType, Exact >::iter_morpher (  )  [inline]

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 112 of file iter_morpher.hh.

00112 {}


Member Function Documentation

template<class SrcType, class IterType, class Exact>
self_type& oln::morpher::iter_morpher< SrcType, IterType, Exact >::assign ( self_type rhs  )  [inline]

Perform a shallow copy from the decorated image of rhs to the current decorated image. The points will be shared by the two images.

Definition at line 119 of file iter_morpher.hh.

00120       {
00121         oln_iter_type(SrcType)  it(rhs);
00122 
00123         for_all(it)
00124           this->at(it) = rhs[it];
00125         return this->exact();
00126       }

template<class SrcType, class IterType, class Exact>
value_type& oln::morpher::iter_morpher< SrcType, IterType, Exact >::at ( const point_type p  )  [inline]

Return the stored value at the point.

Definition at line 134 of file iter_morpher.hh.

00135       {
00136         return const_cast<value_type &>
00137           ( const_cast<SrcType &>(this->ima_)[p] );
00138       }

template<class SrcType, class IterType, class Exact>
const value_type oln::morpher::iter_morpher< SrcType, IterType, Exact >::at ( const point_type p  )  const [inline]

Return the stored value at the point.

Definition at line 146 of file iter_morpher.hh.

00147       {
00148         return this->ima_[p];
00149       }


The documentation for this struct was generated from the following file:
Generated on Tue Feb 20 20:28:04 2007 for Olena by  doxygen 1.5.1