oln::morpher::super_color_morpher< SrcType, Exact > Class Template Reference

Abstract color_morpher class used for code factorization. More...

#include <color_morpher.hh>

Inheritance diagram for oln::morpher::super_color_morpher< SrcType, Exact >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::generic_morpher<
SrcType, Exact > 
super_type
 The upper class.
typedef image_id< Exact
>::impl_type 
impl_type
 The morpher underlying implementation.

Public Member Functions

unsigned get_comp () const
 Return the number of the image component to retrieve.
impl_typeimpl ()
 Return the image implementation.
const impl_typeimpl () const
 Return the image implementation.

Static Public Member Functions

static std::string name ()

Protected Member Functions

 super_color_morpher (const SrcType &ima, unsigned n)
 super_color_morpher ()

Protected Attributes

unsigned n_

Detailed Description

template<class SrcType, class Exact>
class oln::morpher::super_color_morpher< SrcType, Exact >

Abstract color_morpher class used for code factorization.

Parameters:
SrcType Input type decorated.
Exact Exact type

Definition at line 97 of file color_morpher.hh.


Constructor & Destructor Documentation

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

Default constructor.

ima will be the decorated image. One can not use this constructor to instantiate this class since it is protected.

Definition at line 116 of file color_morpher.hh.

00116                                                           : super_type(ima)
00117       {
00118         assert(n == ntg::rgb_R || n == ntg::rgb_G || n == ntg::rgb_B);
00119         n_ = n;
00120       }

template<class SrcType, class Exact>
oln::morpher::super_color_morpher< SrcType, Exact >::super_color_morpher (  )  [inline, protected]

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 126 of file color_morpher.hh.

00127       {}


Member Data Documentation

template<class SrcType, class Exact>
unsigned oln::morpher::super_color_morpher< SrcType, Exact >::n_ [protected]

The component to return.

If n is equal to 0, the red component is returned. If n is equal to 1, the green component is returned. If n is equal to 2, the blue component is returned.

Definition at line 108 of file color_morpher.hh.


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