#include <image_with_impl.hh>
Inheritance diagram for oln::abstract::image_with_impl< Impl, Exact >:
Public Types | |
typedef image_traits< Exact >::point_type | point_type |
typedef image_traits< Exact >::iter_type | iter_type |
typedef image_traits< Exact >::fwd_iter_type | fwd_iter_type |
typedef image_traits< Exact >::bkd_iter_type | bkd_iter_type |
typedef image_traits< Exact >::value_type | value_type |
typedef image_traits< Exact >::size_type | size_type |
typedef image_traits< Exact >::impl_type | impl_type |
typedef image_with_impl< Impl, Exact > | self_type |
typedef Exact | exact_type |
typedef image_with_type_with_dim_switch< Exact >::ret | super_type |
Public Member Functions | |
image_with_impl (self_type &rhs) | |
exact_type & | operator= (self_type rhs) |
Perform a shallow copy from rhs to the current image, the points will not be duplicated but shared between the two images. | |
const impl_type * | impl () const |
Return the core data of the image. | |
const size_type & | size () const |
Get the size of the image. | |
impl_type * | impl () |
Return the core data of the image. | |
void | clone_to (impl_type *output_data) const |
Create a copy of the current image data, at the output_data address. | |
void | clear () |
Free the image data. | |
Static Public Member Functions | |
std::string | name () |
Protected Member Functions | |
const value_type | at (const point_type &p) const |
Return a reference to the value stored at p in the current image. | |
value_type & | at (const point_type &p) |
Return the value stored at p in the current image. | |
exact_type & | assign (exact_type rhs) |
Perform a shallow copy from rhs to the current image, the points will not be duplicated but shared between the two images. | |
image_with_impl () | |
Empty constructor for image_with_impl, set impl_ to 0. | |
image_with_impl (impl_type *impl) | |
Assign impl to this->impl_. | |
Friends | |
class | image< exact_type > |
class | image_with_dim< image_id< Exact >::dim, exact_type > |
class | image_with_type< typename image_id< Exact >::value_type, Exact > |
Definition at line 69 of file image_with_impl.hh.
|
|
|
|
|
|
|
|
/brief Construct a new image by performing a shallow copy, the points will not be duplicated but shared between rhs and the current image.
Definition at line 119 of file image_with_impl.hh.
00120 : super_type(rhs) 00121 { 00122 assertion(rhs.has_impl()); 00123 impl_ = rhs.impl(); 00124 impl_->ref(); 00125 } |
|
Perform a shallow copy from rhs to the current image, the points will not be duplicated but shared between the two images.
Definition at line 240 of file image_with_impl.hh. Referenced by oln::image3d< T, Exact >::operator=(), and oln::image2d< std::vector< oln::point2d > >::operator=().
|
|
Return the value stored at p in the current image.
Reimplemented in oln::morpher::color_morpher< SrcType, Exact >, oln::morpher::piece_morpher< SrcType, Exact >, and oln::morpher::slicing_morpher< SrcType, Exact >. Definition at line 227 of file image_with_impl.hh.
00228 {
00229 return impl_->at(p);
00230 }
|
|
Return a reference to the value stored at p in the current image.
Reimplemented in oln::morpher::color_morpher< SrcType, Exact >, oln::morpher::color_morpher< const SrcType, Exact >, oln::morpher::iter_morpher< const SrcType, IterType, Exact >, oln::morpher::piece_morpher< SrcType, Exact >, oln::morpher::piece_morpher< const SrcType, Exact >, oln::morpher::slicing_morpher< SrcType, Exact >, oln::morpher::slicing_morpher< const SrcType, Exact >, and oln::morpher::subq_morpher< SrcType, N, Exact >. Definition at line 211 of file image_with_impl.hh.
00212 {
00213 return impl_->at(p);
00214 }
|
|
Perform a shallow copy from rhs to the current image, the points will not be duplicated but shared between the two images.
Reimplemented in oln::image1d< T, Exact >, oln::image2d< T, Exact >, oln::image3d< T, Exact >, oln::image2d< T >, oln::image2d< unsigned >, and oln::image2d< std::vector< oln::point2d > >. Definition at line 135 of file image_with_impl.hh.
00136 {
00137 return this->exact().assign(rhs.exact());
00138 }
|
|
Get the size of the image.
Reimplemented in oln::morpher::super_piece_morpher< SrcType, Exact >, oln::morpher::super_slicing_morpher< SrcType, Exact >, oln::morpher::super_piece_morpher< const SrcType, image_id< piece_morpher< const SrcType, Exact > >::exact_type >, oln::morpher::super_piece_morpher< SrcType, image_id< piece_morpher< SrcType, Exact > >::exact_type >, oln::morpher::super_slicing_morpher< const SrcType, image_id< slicing_morpher< const SrcType, Exact > >::exact_type >, and oln::morpher::super_slicing_morpher< SrcType, image_id< slicing_morpher< SrcType, Exact > >::exact_type >. Definition at line 153 of file image_with_impl.hh. Referenced by oln::topo::dmap< T, T2 >::compute(), and oln::topo::dmap< T, T2 >::to_image().
00154 {
00155 assertion(has_impl());
00156 return this->exact().impl()->size();
00157 }
|