|
Hermes
|
Holds 2-dimensional size. More...
#include <size.h>
Public Member Functions | |
| HERMES_DEVICE_CALLABLE | Size3 () |
| Default constructor. | |
| HERMES_DEVICE_CALLABLE | Size3 (T size) |
| Single value constructor. | |
| HERMES_DEVICE_CALLABLE | Size3 (T _width, T _height, T _depth) |
| Constructor. | |
| HERMES_DEVICE_CALLABLE T | operator[] (int i) const |
| Dimension size const access. | |
| HERMES_DEVICE_CALLABLE T & | operator[] (int i) |
| Dimension size access. | |
| HERMES_DEVICE_CALLABLE Size3< T > | operator+ (const Size3< T > &b) const |
| Addition. | |
| HERMES_DEVICE_CALLABLE Size3< T > | operator- (const Size3< T > &b) const |
| Subtraction. | |
| HERMES_DEVICE_CALLABLE bool | operator== (const Size3< T > &b) const |
| Dimension-wise comparison. | |
| HERMES_DEVICE_CALLABLE bool | operator!= (const Size3< T > &b) const |
| Dimension-wise comparison. | |
| HERMES_DEVICE_CALLABLE T | total () const |
| Computes total size area. | |
| HERMES_DEVICE_CALLABLE Size2< T > | slice (int d1=0, int d2=1) const |
| Gets 2-dimensional slice. | |
Public Attributes | |
| T | width {0} |
| 0-th dimension size | |
| T | height {0} |
| 1-th dimension size | |
| T | depth {0} |
| 2-th dimension size | |
Holds 2-dimensional size.
| T |
|
inlineexplicit |
Single value constructor.
| size |
|
inline |
Constructor.
| _width | |
| _height | |
| _depth |
|
inline |
Dimension-wise comparison.
| b |
|
inline |
Addition.
| b |
|
inline |
Subtraction.
| b |
|
inline |
Dimension-wise comparison.
| b |
|
inline |
Dimension size access.
| i |
|
inline |
Dimension size const access.
| i |
|
inline |
Gets 2-dimensional slice.
d1 and d2 must be inside interval [0,2] | d1 | |
| d2 |
|
inline |
Computes total size area.