#include <fwd_iter2d.hh>
Inheritance diagram for oln::fwd_iter2d< Exact >:
Public Types | |
enum | { dim = iter_traits<exact_type>::dim } |
typedef mlc::exact_vt< fwd_iter2d< Exact >, Exact >::ret | exact_type |
The exact type. | |
typedef abstract::iter2d< exact_type > | super_type |
The super type. | |
typedef abstract::iter< exact_type > | super_iter_type |
The super iterator type. | |
typedef iter_traits< exact_type >::point_type | point_type |
The associate image's type of point. | |
Public Member Functions | |
template<class Image> | |
fwd_iter2d (const Image &ima) | |
Construct a forward iterator (2 dimension). | |
template<class U> | |
U | operator= (U u) |
Set current iterator's point. | |
Static Public Member Functions | |
static 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::iter2d< exact_type > |
Allow iterable object (like image, window, ...) of 2 dimensions forward traversing.
Definition at line 58 of file fwd_iter2d.hh.
typedef iter_traits<exact_type>::point_type oln::fwd_iter2d< Exact >::point_type |
The associate image's type of point.
Reimplemented from oln::abstract::iter< Exact >.
Definition at line 77 of file fwd_iter2d.hh.
oln::fwd_iter2d< Exact >::fwd_iter2d | ( | const Image & | ima | ) | [inline] |
Construct a forward iterator (2 dimension).
Definition at line 87 of file fwd_iter2d.hh.
00087 : 00088 super_type(ima.size()) 00089 {}
Set current iterator's point.
Definition at line 97 of file fwd_iter2d.hh.
References oln::abstract::iter< Exact >::operator=().
00098 { 00099 return super_iter_type::operator=(u); 00100 }
void oln::fwd_iter2d< 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 117 of file fwd_iter2d.hh.
References oln::abstract::iter< Exact >::p_.
void oln::fwd_iter2d< 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 128 of file fwd_iter2d.hh.
References oln::abstract::iter2d< Exact >::nrows_, and oln::abstract::iter< Exact >::p_.
bool oln::fwd_iter2d< Exact >::is_at_end_ | ( | ) | const [inline, protected] |
Test if iterator's current point is the last one.
Definition at line 138 of file fwd_iter2d.hh.
References oln::abstract::iter2d< Exact >::nrows_, and oln::abstract::iter< Exact >::p_.