[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|   | MultiCoordinateNavigator< Dimensions, N > Class Template Reference |  | 
A navigator that provides access to the 1D subranges of an n-dimensional range given by an nD shape. More...
#include <vigra/navigator.hxx>
| Public Types | |
| typedef MultiArrayShape < Dimensions >::type | value_type | 
| Public Member Functions | |
| bool | atEnd () const | 
| bool | hasMore () const | 
| MultiCoordinateNavigator (value_type const &shape, unsigned int inner_dimension) | |
| void | operator++ () | 
| void | operator++ (int) | 
A navigator that provides access to the 1D subranges of an n-dimensional range given by an nD shape.
This class works similarly to MultiArrayNavigator, but instead of a 1-dimensional iterator pair, it returns a pair of shapes whose difference specifies a 1-dimensional range along the desired dimension. That is, when the navigator refers to dimension d, the difference between end() and begin() is 1 along all dimensions except d.
The template parameters specifies the dimension of the shape.
Usage:
#include <vigra/navigator.hxx>
Namespace: vigra
| typedef MultiArrayShape<Dimensions>::type value_type | 
The shape type for the given iterator type.
| MultiCoordinateNavigator | ( | value_type const & | shape, | 
| unsigned int | inner_dimension | ||
| ) | 
Construct navigator for multi-dimensional iterator i, array shape shape and inner loop dimension inner_dimension. 
| void operator++ | ( | ) | 
Advance to next starting location.
| void operator++ | ( | int | ) | 
Advance to next starting location.
| bool hasMore | ( | ) | const | 
true if there are more elements.
| bool atEnd | ( | ) | const | 
true if iterator is exhausted.
| 
© Ullrich Köthe     (ullrich.koethe@iwr.uni-heidelberg.de)  | 
html generated using doxygen and Python
 |