oln::fwd_iter3d< Exact > Class Template Reference

Backward Iterator on image 3 dimension. More...

#include <fwd_iter3d.hh>

Inheritance diagram for oln::fwd_iter3d< Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::fwd_iter3d< Exact >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef mlc::exact_vt< fwd_iter3d<
Exact >, Exact >::ret 
exact_type
 The exact type.

typedef abstract::iter3d<
exact_type
super_type
 The super type.

typedef abstract::iter< exact_typesuper_iter_type
 The super iterator type.

typedef iter_traits< exact_type
>::point_type 
point_type
 The associate image's type of point.

enum  { dim = iter_traits<exact_type>::dim }

Public Member Functions

template<class Image>  fwd_iter3d (const Image &ima)
 Construct a forward iterator (3 dimension).
  • ima The image to iterate.


template<class U> U operator= (U u)
 Set current iterator's point.
  • u New current point.



Static Public Member Functions

std::string name ()
 Return the name of the type.


Protected Member Functions

void goto_begin_ ()
 Set current point to the first iterator's point.

void goto_end_ ()
 Set current point to the last iterator's point.

bool is_at_end_ () const
 Test if iterator's current point is the last one.

void goto_next_ ()
 Go to the next iterator's point.


Friends

class abstract::iter< exact_type >
class abstract::iter3d< exact_type >

Detailed Description

template<class Exact>
class oln::fwd_iter3d< Exact >

Backward Iterator on image 3 dimension.

Allow iterable object (like image, window, ...) of 3 dimensions forward traversing.

See also:
iter

Definition at line 55 of file fwd_iter3d.hh.


Member Typedef Documentation

template<class Exact>
typedef iter_traits<exact_type>::point_type oln::fwd_iter3d< Exact >::point_type
 

The associate image's type of point.

Warning:
Prefer the macros oln_point_type(Pointable) and oln_point_type_(Pointable) (the same without the 'typename' keyword)

Reimplemented from oln::abstract::iter< Exact >.

Definition at line 74 of file fwd_iter3d.hh.


Member Function Documentation

template<class Exact>
void oln::fwd_iter3d< Exact >::goto_begin_  )  [inline, protected]
 

Set current point to the first iterator's point.

Set current point of iterator to the first iterator's point.

Definition at line 114 of file fwd_iter3d.hh.

00115     {
00116       this->p_.slice() = this->p_.row() = this->p_.col() = 0;
00117     }

template<class Exact>
void oln::fwd_iter3d< Exact >::goto_end_  )  [inline, protected]
 

Set current point to the last iterator's point.

Set current point of iterator to the last iterator's point.

Definition at line 125 of file fwd_iter3d.hh.

00126     {
00127       this->p_.slice() = this->nslices_;
00128     }

template<class Exact>
bool oln::fwd_iter3d< Exact >::is_at_end_  )  const [inline, protected]
 

Test if iterator's current point is the last one.

Returns:
True if current point is the last one.

Definition at line 135 of file fwd_iter3d.hh.

00136     {
00137       return this->p_.slice() == this->nslices_;
00138     }


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