#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 | |
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.
|
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 } }; |
|
Get the coordinates of iterator's current point. On this kind of image, all point are on the same line. So you are able to get the column number by this way (and never the line number). Definition at line 86 of file iter1d.hh.
00087 { 00088 return this->p_.col(); 00089 } |
|
Get the current point viewed by the iterator.
Definition at line 107 of file iter1d.hh.
|