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

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

#include <color_morpher.hh>

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

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef image_id< color_morpher<
const SrcType, Exact
> >::exact_type 
exact_type
 The type of the object instantiated. color_morpher can be derived.
typedef image_id< exact_type
>::point_type 
point_type
 The morpher point type.
typedef image_id< exact_type
>::iter_type 
iter_type
typedef image_id< exact_type
>::value_type 
value_type
typedef super_color_morpher<
const SrcType, exact_type
super_type

Public Member Functions

 color_morpher (const SrcType &ima, unsigned n)
 Construct the color_morpher with an image ima and a component n.
 color_morpher (const color_morpher< const SrcType, Exact > &r)
 Construct the color_morpher with another color_morpher.
 color_morpher ()
const value_type at (const point_type &p) const

Static Public Member Functions

static std::string name ()

Detailed Description

template<class SrcType, class Exact>
struct oln::morpher::color_morpher< const SrcType, Exact >

The specialized version for `const' declared images.

Parameters:
SrcType Input type decorated.
Exact Exact Type.
See also:
oln::morpher::abstract::generic_morpher

Definition at line 264 of file color_morpher.hh.


Member Typedef Documentation

template<class SrcType, class Exact>
typedef image_id<exact_type>::iter_type oln::morpher::color_morpher< const SrcType, Exact >::iter_type

<The type of the class point.

Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >.

Definition at line 274 of file color_morpher.hh.

template<class SrcType, class Exact>
typedef image_id<exact_type>::value_type oln::morpher::color_morpher< const SrcType, Exact >::value_type

<The type of the class iterator.

Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >.

Definition at line 276 of file color_morpher.hh.

template<class SrcType, class Exact>
typedef super_color_morpher<const SrcType, exact_type> oln::morpher::color_morpher< const SrcType, Exact >::super_type

<The value of the decorated image.

Reimplemented from oln::morpher::super_color_morpher< SrcType, Exact >.

Definition at line 279 of file color_morpher.hh.


Constructor & Destructor Documentation

template<class SrcType, class Exact>
oln::morpher::color_morpher< const SrcType, Exact >::color_morpher ( const SrcType &  ima,
unsigned  n 
) [inline]

Construct the color_morpher with an image ima and a component n.

<The upper class.

Definition at line 283 of file color_morpher.hh.

00283                                                     : super_type(ima, n)
00284       {}

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

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 295 of file color_morpher.hh.

00296       {}


Member Function Documentation

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

Return the n_th component of the rgb value stored at p.

Warning:
This method should not be used directly. Prefer operator[].

Definition at line 304 of file color_morpher.hh.

00305       {
00306         return this->ima_[p][this->n_];
00307       }


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