#include <iter1d.hh>
Inheritance diagram for oln::abstract::iter1d< Exact >:
Public Types | |
typedef iter< Exact > | super_type |
The exact type of the object. | |
Public Member Functions | |
coord | col () const |
Get the coordinates of iterator's current point. | |
Static Public Member Functions | |
static std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
point1d | to_point () const |
Get the current point viewed by the iterator. | |
iter1d () | |
Constructor. | |
iter1d (const image1d_size &size) | |
Constructor. | |
Protected Attributes | |
const coord | ncols_ |
The number of columns of the image you are iterating. | |
Friends | |
class | iter< Exact > |
Allow iterable object (like image, window, ...) of 1 dimension traversing.
Definition at line 70 of file iter1d.hh.
oln::abstract::iter1d< Exact >::iter1d | ( | const image1d_size & | size | ) | [inline, protected] |
Constructor.
Definition at line 128 of file iter1d.hh.
00128 : 00129 super_type(), ncols_(size.ncols()) 00130 { 00131 precondition(size.ncols() > 0); 00132 this->exact().goto_begin_(); 00133 } };
coord oln::abstract::iter1d< Exact >::col | ( | ) | const [inline] |
point1d oln::abstract::iter1d< Exact >::to_point | ( | ) | const [inline, protected] |
Get the current point viewed by the iterator.
Definition at line 107 of file iter1d.hh.
00108 { 00109 precondition(*this != end); 00110 invariant(this->p_.col() >= 0 && 00111 this->p_.col() < ncols_); 00112 return this->p_; 00113 }