#include <iter2d.hh>
Inheritance diagram for oln::abstract::iter2d< Exact >:
Public Types | |
typedef iter< Exact > | super_type |
The exact type of the object. | |
Public Member Functions | |
coord | row () const |
Get the coordinates (rows) of iterator's current point. | |
coord | col () const |
Get the coordinates (columns) of iterator's current point. | |
Static Public Member Functions | |
std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
point2d | to_point () const |
Get the current point viewed by the iterator. | |
iter2d () | |
Constructor. | |
iter2d (const image2d_size &size) | |
Construct an iterator (2d) on an inamge (2d).
| |
Protected Attributes | |
const coord | nrows_ |
The number of rows of the image you are iterating. | |
const coord | ncols_ |
The number of columns of the image you are iterating. | |
Friends | |
class | iter< Exact > |
Allow iterable object (like image, window, ...) of 2 dimensions traversing.
Definition at line 70 of file iter2d.hh.
|
Construct an iterator (2d) on an inamge (2d).
Definition at line 143 of file iter2d.hh.
00143 : 00144 super_type(), 00145 nrows_(size.nrows()), 00146 ncols_(size.ncols()) 00147 { 00148 precondition(size.nrows() > 0 && 00149 size.ncols() > 0); 00150 this->exact().goto_begin_(); 00151 } }; |
|
Get the coordinates (columns) of iterator's current point.
Definition at line 99 of file iter2d.hh.
00100 { 00101 return this->p_.col(); 00102 } |
|
Get the coordinates (rows) of iterator's current point.
Definition at line 86 of file iter2d.hh.
00087 { 00088 return this->p_.row(); 00089 } |
|
Get the current point viewed by the iterator.
Definition at line 121 of file iter2d.hh.
|