Hermes
|
Represents a closed-open range of indices [lower, upper)
More...
Public Member Functions | |
HERMES_DEVICE_CALLABLE | Index2Range (T upper_i, T upper_j) |
Constructs an index range [0, {upper_i,upper_j}) More... | |
HERMES_DEVICE_CALLABLE | Index2Range (Index2< T > lower, Index2< T > upper) |
Constructs an index range [lower, upper) More... | |
HERMES_DEVICE_CALLABLE | Index2Range (size2 upper) |
Constructs an index range [0, upper) More... | |
HERMES_DEVICE_CALLABLE bool | contains (const Index2< T > &ij) const |
HERMES_DEVICE_CALLABLE bool | operator== (const Index2Range< T > &r) const |
HERMES_DEVICE_CALLABLE Index2Iterator< T > | begin () const |
HERMES_DEVICE_CALLABLE Index2Iterator< T > | end () const |
HERMES_DEVICE_CALLABLE const Index2< T > & | lower () const |
HERMES_DEVICE_CALLABLE const Index2< T > & | upper () const |
HERMES_DEVICE_CALLABLE T | area () const |
Friends | |
HERMES_DEVICE_CALLABLE friend Index2Range< T > | intersect (const Index2Range< T > &a, const Index2Range< T > &b) |
Represents a closed-open range of indices [lower, upper)
Can be used in a for each loop that iterates over all indices in the range:
T | must be an integer type |
|
inline |
Constructs an index range [0, {upper_i,upper_j})
upper_i | - upper bound i |
upper_j | - upper bound j |
|
inline |
Constructs an index range [lower, upper)
lower | - lower bound |
upper | [in | default = Index2<T>()] upper bound |
|
inlineexplicit |
Constructs an index range [0, upper)
upper | - upper bound |
|
inline |
|
inline |
|
inline |
ij |
|
inline |
|
inline |
|
inline |
r |
|
inline |
|
friend |
a | |
b |