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

Abstract piece morpher class used for code factorization. More...

#include <piece_morpher.hh>

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

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef super_piece_morpher<
SrcType, 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 > 
super_type
 The upper class.
typedef image_id< exact_type
>::dpoint_type 
dpoint_type
 The morpher dpoint type.
typedef image_id< exact_type
>::size_type 
size_type
 The morpher size type.

Public Member Functions

const size_type size () const
 Return the size (different from the original picture).
const dpoint_type ref_point () const
 Return the reference point.

Static Public Member Functions

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

Protected Member Functions

 super_piece_morpher (const SrcType &ima, const dpoint_type &p, const size_type &s)
 Default constructor.
 super_piece_morpher ()
 Empty constructor.

Protected Attributes

const size_type size_
 The size of the piece of picture.
const dpoint_type p_
 The reference point of the piece of picture.

Detailed Description

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

Abstract piece morpher class used for code factorization.

Definition at line 91 of file piece_morpher.hh.


Constructor & Destructor Documentation

template<class SrcType, class Exact>
oln::morpher::super_piece_morpher< SrcType, Exact >::super_piece_morpher ( const SrcType &  ima,
const dpoint_type p,
const size_type s 
) [inline, protected]

Default constructor.

One can not use this constructor to instantiate this class since it is protected.

Definition at line 115 of file piece_morpher.hh.

00117         : super_type(ima), size_(s), p_(p)
00118       {}

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

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 129 of file piece_morpher.hh.

00130         : super_type(), size_(), p_()
00131       {}


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