#include <generic_morpher.hh>
Inheritance diagram for oln::morpher::abstract::generic_morpher< SrcType, Exact >:


Public Types | |
|
typedef generic_morpher< SrcType, Exact > | self_type |
| The self type. | |
| typedef Exact | exact_type |
| The exact type of the morpher. | |
|
typedef image_traits< exact_type >::point_type | point_type |
| The morpher point type. | |
|
typedef image_traits< exact_type >::dpoint_type | dpoint_type |
| The morpher dpoint type. | |
|
typedef image_traits< exact_type >::iter_type | iter_type |
| The morpher iterator type. | |
|
typedef image_traits< exact_type >::fwd_iter_type | fwd_iter_type |
| The morpher forward iterator type. | |
|
typedef image_traits< exact_type >::bkd_iter_type | bkd_iter_type |
| The morpher backward iterator type. | |
|
typedef image_traits< exact_type >::value_type | value_type |
| The morpher value type. | |
|
typedef image_traits< exact_type >::size_type | size_type |
| The morpher size type. | |
|
typedef image_traits< exact_type >::impl_type | impl_type |
| The morpher underlying implementation. | |
|
typedef dest_type< image_traits< exact_type >::dim, value_type >::ret | DestType |
| typedef SrcType | src_self_type |
| Type of the decorated image. | |
|
typedef mlc::exact< SrcType >::ret::point_type | src_point_type |
| The decorated image point type. | |
|
typedef mlc::exact< SrcType >::ret::dpoint_type | src_dpoint_type |
| The decorated image dpoint type. | |
|
typedef mlc::exact< SrcType >::ret::iter_type | src_iter_type |
| The decorated image iterator type. | |
|
typedef mlc::exact< SrcType >::ret::fwd_iter_type | src_fwd_iter_type |
| The decorated image forward iterator type. | |
|
typedef mlc::exact< SrcType >::ret::bkd_iter_type | src_bkd_iter_type |
| The decorated image backward iterator type. | |
|
typedef mlc::exact< SrcType >::ret::value_type | src_value_type |
| The decorated image value type. | |
|
typedef mlc::exact< SrcType >::ret::size_type | src_size_type |
| The decorated image size type. | |
|
typedef mlc::exact< SrcType >::ret::impl_type | src_impl_type |
| The decorated image underlying implementation. | |
|
typedef mlc::exact< SrcType >::ret | src_exact_type |
| Exact type of the decorated image. | |
|
typedef oln::abstract::image_with_impl< impl_type, exact_type > | super_type |
| The upper class. | |
Public Member Functions | |
| const SrcType & | get_ima () const |
| Return the decorated image. | |
| DestType | unmorph () const |
| Instantiate and return the image that the morpher is simulating. | |
| const src_value_type | at (const src_point_type &p) const |
| src_value_type & | at (const src_point_type &p) |
| const src_impl_type * | impl () const |
| Default implementation of impl. | |
| src_impl_type * | impl () |
| Default implementation of impl. | |
| src_exact_type | clone_ () const |
| size_t | npoints_ () |
| src_exact_type & | assign (src_exact_type &rhs) |
| void | border_set_width (oln::coord min_border, bool copy_border=false) const |
| self_type & | operator= (self_type &rhs) |
Static Public Member Functions | |
| std::string | name () |
Protected Member Functions | |
| generic_morpher (const SrcType &Ima) | |
| Construct an instance of generic_morpher by assigning Ima to Ima_. | |
| generic_morpher () | |
| Empty Constructor. | |
Protected Attributes | |
| const SrcType & | ima_ |
| The decorated image. | |
Define a default implementation for all the dispatched methods of the image hierarchy.
| DestType | Output type of the morpher. |
| SrcType | Input type decorated. |
| Exact | Exact type |
Definition at line 107 of file generic_morpher.hh.
|
||||||||||
|
Default implementation of assign. Assign rhs to the decorated image. Definition at line 263 of file generic_morpher.hh.
00264 {
00265 return to_exact(ima_).assign(rhs);
00266 }
|
|
||||||||||
|
Default implementation of at. Return a reference to the value stored at p in the decorated image.
Definition at line 219 of file generic_morpher.hh.
00220 {
00221 return ima_[p];
00222 }
|
|
||||||||||
|
Default implementation of at. Return the value stored at p in the decorated image.
Definition at line 206 of file generic_morpher.hh.
00207 {
00208 return ima_[p];
00209 }
|
|
||||||||||||||||
|
Default implementation of border_set_width. Set the border width of the decorated image to min_border. Definition at line 274 of file generic_morpher.hh.
00276 {
00277 return to_exact(ima_).border_set_width(min_border, copy_border);
00278 }
|
|
|||||||||
|
Default implementation of clone_. Return a copy of the decorated image. Definition at line 243 of file generic_morpher.hh.
00244 {
00245 return to_exact(ima_).clone();
00246 }
|
|
|||||||||
|
Default implementation of npoints_. Return the size of the decorated image. Definition at line 253 of file generic_morpher.hh.
00254 {
00255 return to_exact(ima_).npoints();
00256 }
|
|
||||||||||
|
Default implementation of the = operator. Assign the decorated image to 'a r. Reimplemented in oln::morpher::slicing_morpher< SrcType, Exact >. Definition at line 285 of file generic_morpher.hh.
00286 {
00287 return to_exact(*this).assign(rhs.exact());
00288 }
|
1.3.6-20040222