Public Types | |
typedef iter_morpher< 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< 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) |
value_type & | at (const point_type &p) |
Return the stored value at the point. | |
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 81 of file iter_morpher.hh.
oln::morpher::iter_morpher< SrcType, IterType, Exact >::iter_morpher | ( | ) | [inline] |
Empty constructor.
Needed by mlc_hierarchy::any_with_diamond.
Definition at line 112 of file iter_morpher.hh.
self_type& oln::morpher::iter_morpher< 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 119 of file iter_morpher.hh.
00120 { 00121 oln_iter_type(SrcType) it(rhs); 00122 00123 for_all(it) 00124 this->at(it) = rhs[it]; 00125 return this->exact(); 00126 }
value_type& oln::morpher::iter_morpher< SrcType, IterType, Exact >::at | ( | const point_type & | p | ) | [inline] |
Return the stored value at the point.
Definition at line 134 of file iter_morpher.hh.
00135 { 00136 return const_cast<value_type &> 00137 ( const_cast<SrcType &>(this->ima_)[p] ); 00138 }
const value_type oln::morpher::iter_morpher< SrcType, IterType, Exact >::at | ( | const point_type & | p | ) | const [inline] |
Return the stored value at the point.
Definition at line 146 of file iter_morpher.hh.
00147 { 00148 return this->ima_[p]; 00149 }