|
Hermes
|
#include <index.h>
Public Member Functions | |
| HERMES_DEVICE_CALLABLE | Index2Iterator () |
| Default constructor. | |
| HERMES_DEVICE_CALLABLE | Index2Iterator (Index2< T > lower, Index2< T > upper) |
| Constructor. | |
| HERMES_DEVICE_CALLABLE | Index2Iterator (Index2< T > lower, Index2< T > upper, Index2< T > start) |
| Construct a new Index2Iterator object. | |
| HERMES_DEVICE_CALLABLE Index2Iterator & | operator++ () |
| HERMES_DEVICE_CALLABLE const Index2< T > & | operator* () const |
| HERMES_DEVICE_CALLABLE size_t | flatIndex () const |
| Computes a flat index based on size. | |
| HERMES_DEVICE_CALLABLE bool | operator== (const Index2Iterator< T > &other) const |
| are equal? operator | |
| HERMES_DEVICE_CALLABLE bool | operator!= (const Index2Iterator< T > &other) const |
| are different? operator | |
|
inline |
Constructor.
| lower | |
| upper |
|
inline |
Construct a new Index2Iterator object.
| lower | - lower bound |
| upper | - upper bound |
| start | - starting coordinate |
|
inline |
Computes a flat index based on size.
\(j * (upper - lower)_i + i\)
|
inline |
are different? operator
| other | - |
|
inline |
|
inline |
|
inline |
are equal? operator
| other | - |