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

The specialized version for `const' declared images. More...

#include <iter_morpher.hh>

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

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef iter_morpher< const
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<
const 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)
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< const SrcType, IterType, Exact >

The specialized version for `const' declared images.

Definition at line 162 of file iter_morpher.hh.


Constructor & Destructor Documentation

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

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 195 of file iter_morpher.hh.

00195 {}


Member Function Documentation

template<class SrcType, class IterType, class Exact>
self_type& oln::morpher::iter_morpher< const 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 202 of file iter_morpher.hh.

00203       {
00204         oln_iter_type(SrcType)  it(rhs);
00205 
00206         for_all(it)
00207           this->at(it) = rhs[it];
00208         return this->exact();
00209       }

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

Return the stored value at the point.

Definition at line 217 of file iter_morpher.hh.

00218       {
00219         return this->ima_[p];
00220       }


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