#include <fimex/IndexedData.h>
|
| IndexedData () |
|
| IndexedData (DataPtr data, std::vector< std::size_t > dimSizes) |
|
| ~IndexedData () |
|
void | setDims (std::vector< std::size_t > dims) |
| set the dimension sizes of data More...
|
|
const DataIndex & | idx () const |
| get the index belonging to the data More...
|
|
DataPtr | getDataPtr () const |
|
double | getDouble (size_t pos) const |
|
double | getDouble (size_t a, size_t b) const |
| shortcut for 2d More...
|
|
double | getDouble (size_t a, size_t b, size_t c) const |
| shortcut for 3d More...
|
|
double | getDouble (size_t a, size_t b, size_t c, size_t d) const |
| shortcut for 4d More...
|
|
long long | getLongLong (size_t pos) const |
|
double | getLongLong (size_t a, size_t b) const |
| shortcut for 2d More...
|
|
double | getLongLong (size_t a, size_t b, size_t c) const |
| shortcut for 3d More...
|
|
double | getLongLong (size_t a, size_t b, size_t c, size_t d) const |
| shortcut for 4d More...
|
|
MetNoFimex::IndexedData::IndexedData |
( |
| ) |
|
MetNoFimex::IndexedData::IndexedData |
( |
DataPtr |
data, |
|
|
std::vector< std::size_t > |
dimSizes |
|
) |
| |
|
explicit |
Create a indexed data. See setDims() for more information.
- Parameters
-
MetNoFimex::IndexedData::~IndexedData |
( |
| ) |
|
DataPtr MetNoFimex::IndexedData::getDataPtr |
( |
| ) |
const |
double MetNoFimex::IndexedData::getDouble |
( |
size_t |
pos | ) |
const |
simple data accessor, should be used with MetNoFimex::Index
double val = id.getDouble(id.getIdx().getPos(3, 5, 7));
- Parameters
-
pos | data position, should be < size (not assured) |
double MetNoFimex::IndexedData::getDouble |
( |
size_t |
a, |
|
|
size_t |
b |
|
) |
| const |
|
inline |
double MetNoFimex::IndexedData::getDouble |
( |
size_t |
a, |
|
|
size_t |
b, |
|
|
size_t |
c |
|
) |
| const |
|
inline |
double MetNoFimex::IndexedData::getDouble |
( |
size_t |
a, |
|
|
size_t |
b, |
|
|
size_t |
c, |
|
|
size_t |
d |
|
) |
| const |
|
inline |
long long MetNoFimex::IndexedData::getLongLong |
( |
size_t |
pos | ) |
const |
simple data accessor, should be used with MetNoFimex::Index
- Parameters
-
pos | data position, should be < size (not assured) |
Referenced by getDouble().
double MetNoFimex::IndexedData::getLongLong |
( |
size_t |
a, |
|
|
size_t |
b |
|
) |
| const |
|
inline |
double MetNoFimex::IndexedData::getLongLong |
( |
size_t |
a, |
|
|
size_t |
b, |
|
|
size_t |
c |
|
) |
| const |
|
inline |
double MetNoFimex::IndexedData::getLongLong |
( |
size_t |
a, |
|
|
size_t |
b, |
|
|
size_t |
c, |
|
|
size_t |
d |
|
) |
| const |
|
inline |
const DataIndex& MetNoFimex::IndexedData::idx |
( |
| ) |
const |
void MetNoFimex::IndexedData::setDims |
( |
std::vector< std::size_t > |
dims | ) |
|
set the dimension sizes of data
The dimension sizes should be set with the fastest moving index first, e.g. x,y,z. It handles gracefully the case when the data is not defined.
- Exceptions
-
runtime_error | if mult(dims) != size() |
The documentation for this class was generated from the following file: