libSplash
|
#include <Dimensions.hpp>
Public Member Functions | |
Dimensions (void) | |
Dimensions (hsize_t x, hsize_t y, hsize_t z) | |
hsize_t & | operator[] (const hsize_t t) |
const hsize_t & | operator[] (const hsize_t t) const |
Dimensions | operator+ (Dimensions const &other) const |
Dimensions | operator- (Dimensions const &other) const |
Dimensions | operator* (Dimensions const &other) const |
Dimensions | operator/ (Dimensions const &other) const |
Dimensions | operator+= (Dimensions const &rhs) |
Dimensions | operator-= (Dimensions const &rhs) |
bool | operator== (Dimensions const &other) const |
bool | operator!= (Dimensions const &other) const |
std::string | toString () const |
hsize_t * | getPointer () |
const hsize_t * | getPointer () const |
size_t | getScalarSize () const |
void | set (hsize_t x, hsize_t y, hsize_t z) |
void | set (const Dimensions d) |
uint32_t | getDims (void) const |
void | swapDims (uint32_t dims) |
Static Public Member Functions | |
static size_t | getSize () |
Manages 1-3D size information. Can be used for MPI-positions/-dimensions or data-dimensions.
Definition at line 38 of file Dimensions.hpp.
|
inline |
Default constructor. Initializes all dimensions to 1.
Definition at line 48 of file Dimensions.hpp.
|
inline |
Constructor
x | first dimension |
y | second dimension |
z | third dimension |
Definition at line 59 of file Dimensions.hpp.
|
inline |
Get the number of dimensions.
Definition at line 252 of file Dimensions.hpp.
|
inline |
Get pointer to internal data array.
Definition at line 192 of file Dimensions.hpp.
|
inline |
Get pointer to internal data array.
Definition at line 201 of file Dimensions.hpp.
|
inline |
Get the scalar size.
Definition at line 219 of file Dimensions.hpp.
|
inlinestatic |
Get the size in bytes of the data array.
Definition at line 210 of file Dimensions.hpp.
|
inline |
Element-wise comparison of two Dimensions
other | other Dimensions |
Definition at line 171 of file Dimensions.hpp.
|
inline |
Element-wise multiplication of two Dimensions
other | other Dimensions |
Definition at line 114 of file Dimensions.hpp.
|
inline |
Element-wise addition of two Dimensions
other | other Dimensions |
Definition at line 92 of file Dimensions.hpp.
|
inline |
Element-wise addition of Dimensions rhs
to this Dimensions
rhs | other Dimensions |
Definition at line 136 of file Dimensions.hpp.
|
inline |
Element-wise substraction of two Dimensions
other | other Dimensions |
Definition at line 103 of file Dimensions.hpp.
|
inline |
Element-wise substraction of Dimensions rhs
from this Dimensions
rhs | other Dimensions |
Definition at line 148 of file Dimensions.hpp.
|
inline |
Element-wise division of two Dimensions
other | other Dimensions |
Definition at line 125 of file Dimensions.hpp.
|
inline |
Element-wise comparison of two Dimensions
other | other Dimensions |
Definition at line 160 of file Dimensions.hpp.
|
inline |
Returns element t
t | element index (1-3) |
Definition at line 70 of file Dimensions.hpp.
|
inline |
Returns element t
t | element index (1-3) |
Definition at line 81 of file Dimensions.hpp.
|
inline |
Set dimensions.
x | First dimension. |
y | Second dimension. |
z | Third dimension. |
Definition at line 230 of file Dimensions.hpp.
|
inline |
Set dimensions.
d | Dimensions object to copy data from. |
Definition at line 241 of file Dimensions.hpp.
|
inline |
Swaps the dimensions depending on dims
.
dims | Number of dimensions for swapping. |
Definition at line 269 of file Dimensions.hpp.
|
inline |
Returns the string representation of this object
Definition at line 181 of file Dimensions.hpp.