oln::image1d< T, Exact > Class Template Reference

#include <image1d.hh>

Inheritance diagram for oln::image1d< T, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::image1d< T, Exact >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef image1d< T, Exact > self_type
typedef image_id< image1d<
T, Exact > >::value_type 
value_type
typedef image_id< image1d<
T, Exact > >::exact_type 
exact_type
typedef image_id< image1d<
T, Exact > >::impl_type 
impl_type
typedef image< image_id< image1d<
T, Exact > >::dim, value_type,
impl_type, exact_type > 
super_type

Public Member Functions

 image1d (coord ncols, coord border=2)
 Allocate memory to contain an image1d with ncols column plus a border width equal to 2 by default.

 image1d (const image1d_size &size)
 Allocate memory to contain an image1d with a size equal to size.

 image1d (self_type &rhs)
 Build a new image1d by performing a shallow copy of rhs, all the points will be shared between rhs and the current image.

exact_type & operator= (self_type rhs)
 Perform a shallow copy from rhs to the current image, the points are not duplicated but shared between the two images.

 image1d (const io::internal::anything &r)
 Perform a shallow copy from r to the new image, the points are not duplicated, but shared between the two images.

image1doperator= (const io::internal::anything &r)
 Perform a shallow copy from r to the current image, the points are not duplicated, but shared between the two images.

 image1d (const self_type &rhs)

Static Public Member Functions

std::string name ()

Protected Member Functions

exact_type clone_ () const
 Return a deep copy of the current image.


Friends

class abstract::image< exact_type >

Detailed Description

template<class T, class Exact>
class oln::image1d< T, Exact >

To instantiate an image1d with oln::rgb_8 as value_type, one can write:
oln::image1d<ntg::rgb_8> t;

Definition at line 91 of file image1d.hh.


Member Typedef Documentation

template<class T, class Exact>
typedef image_id<image1d<T, Exact> >::impl_type oln::image1d< T, Exact >::impl_type
 

Underlying implementation.

Reimplemented from oln::image< Dim, T, Impl, Exact >.

Definition at line 103 of file image1d.hh.

template<class T, class Exact>
typedef image_id<image1d<T, Exact> >::value_type oln::image1d< T, Exact >::value_type
 

Prefer the macro oln_value_type(I) to retrieve the value_type of an image.

Reimplemented from oln::image< Dim, T, Impl, Exact >.

Definition at line 101 of file image1d.hh.


Constructor & Destructor Documentation

template<class T, class Exact>
oln::image1d< T, Exact >::image1d self_type &  rhs  )  [inline]
 

Build a new image1d by performing a shallow copy of rhs, all the points will be shared between rhs and the current image.

See also:
abstract::image::clone()

Definition at line 146 of file image1d.hh.

00146                             : // shallow copy
00147       super_type(rhs)
00148     { mlc_init_static_hierarchy(Exact); }

template<class T, class Exact>
oln::image1d< T, Exact >::image1d const io::internal::anything r  )  [inline]
 

Perform a shallow copy from r to the new image, the points are not duplicated, but shared between the two images.

See also:
abstract::image::clone()

Definition at line 172 of file image1d.hh.

References oln::io::internal::anything::assign().

00173       : super_type()
00174     {
00175       mlc_init_static_hierarchy(Exact);
00176       r.assign(*this);
00177     }


Member Function Documentation

template<class T, class Exact>
image1d& oln::image1d< T, Exact >::operator= const io::internal::anything r  )  [inline]
 

Perform a shallow copy from r to the current image, the points are not duplicated, but shared between the two images.

See also:
abstract::image::clone()

Definition at line 187 of file image1d.hh.

References oln::io::internal::anything::assign().

00188     {
00189       return r.assign(*this);
00190     }

template<class T, class Exact>
exact_type& oln::image1d< T, Exact >::operator= self_type  rhs  )  [inline]
 

Perform a shallow copy from rhs to the current image, the points are not duplicated but shared between the two images.

See also:
abstract::image::clone()

Reimplemented from oln::abstract::image_with_impl< Impl, Exact >.

Definition at line 158 of file image1d.hh.

00159     {
00160       return this->exact().assign(rhs.exact());
00161     }


The documentation for this class was generated from the following file:
Generated on Thu Apr 15 20:14:15 2004 for Olena by doxygen 1.3.6-20040222