#include <iter_morpher.hh>
Inheritance diagram for oln::morpher::iter_morpher< const SrcType, IterType, Exact >:
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_type & | assign (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. |
Definition at line 162 of file iter_morpher.hh.
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.
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 }
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 }