Workspace 6.21.5
|
An empty implementation of an ArrayNd object which will be created by default for all DataObjects.
#include <DataAnalysis/DataStructures/arraynd.h>
Public Member Functions | |
ArrayNdEmpty () | |
bool | arrayAccessHint (const NamedDimensionRangeList &range) override |
ArrayNdEmpty * | clone () const override |
const DataCollection & | getAttributes () const override |
const DataExecution::DataFactory * | getDataFactory () const override |
int | getDimensionIndex (const QString &name) const override |
ArrayNdDimensionLabels | getDimensionLabels (const QString &dimName) const override |
QString | getDimensionName (int index) const override |
size_type | getDimensionSize (const QString &name) const override |
size_type | getDimensionSize (int index) const override |
double | getFillValue () const override |
QVariant | getFillValueAsVariant () const override |
QVariant | getValue (const DimensionIndexList &dimIndices) const override |
QVariant | getValue (size_type dim0, size_type dim1=0, size_type dim2=0, size_type dim3=0, size_type dim4=0) const override |
bool | hasFillValue () const override |
bool | isDimensionUnlimited (int index) const override |
int | numDimensions () const override |
double | operator() (const DimensionIndexList &dimIndices) const override |
double | operator() (size_type dim0, size_type dim1=0, size_type dim2=0, size_type dim3=0, size_type dim4=0) const override |
ArrayNdEmpty & | operator= (const ArrayNdEmpty &other)=default |
bool | setDimensions (const NamedDimensionRangeList &dimensions) override |
void | setHasFillValue (bool b) override |
Public Member Functions inherited from ArrayNd | |
ArrayNd () | |
~ArrayNd () override | |
virtual bool | arrayAccessHint (const NamedDimensionRangeList &range)=0 |
const_iterator | begin () const |
ArrayNd * | clone () const override=0 |
const_iterator | end () const |
NamedDimensionRangeList | getAllDimensions () const |
virtual const DataCollection & | getAttributes () const =0 |
template<typename T > | |
bool | getData (const NamedDimensionRangeList &range, T *data) const |
virtual const DataExecution::DataFactory * | getDataFactory () const =0 |
NamedDimensionRange | getDimension (const QString &name) const |
virtual int | getDimensionIndex (const QString &name) const =0 |
virtual ArrayNdDimensionLabels | getDimensionLabels (const QString &dimensionName) const =0 |
virtual QString | getDimensionName (int index) const =0 |
virtual size_type | getDimensionSize (const QString &name) const =0 |
virtual size_type | getDimensionSize (int index) const =0 |
virtual double | getFillValue () const =0 |
virtual QVariant | getFillValueAsVariant () const =0 |
template<typename T > | |
ArrayNdTyped< T > * | getTypedInterface () |
template<typename T > | |
const ArrayNdTyped< T > * | getTypedInterface () const |
virtual QVariant | getValue (const DimensionIndexList &dimIndices) const =0 |
virtual QVariant | getValue (size_type dim0, size_type dim1=0, size_type dim2=0, size_type dim3=0, size_type dim4=0) const =0 |
virtual bool | hasFillValue () const =0 |
virtual bool | isDimensionUnlimited (int index) const =0 |
virtual int | numDimensions () const =0 |
virtual double | operator() (const DimensionIndexList &dimIndices) const =0 |
virtual double | operator() (size_type dim0, size_type dim1=0, size_type dim2=0, size_type dim3=0, size_type dim4=0) const =0 |
const_iterator_range | range (const NamedDimensionRangeList &range) const |
virtual bool | setDimensions (const NamedDimensionRangeList &dimensions)=0 |
template<typename T > | |
bool | setFillValue (const T &value) |
virtual void | setHasFillValue (bool b)=0 |
template<typename T > | |
bool | writeData (const NamedDimensionRangeList &range, const T *data) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Static Public Member Functions | |
static ArrayNdEmpty & | nullObject () |
Additional Inherited Members | |
Public Types inherited from ArrayNd | |
typedef NamedDimensionRange::size_type | size_type |
Protected Member Functions inherited from ArrayNd | |
ArrayNd (ArrayNd &&other) | |
ArrayNd (const ArrayNd &other) | |
ArrayNd & | operator= (const ArrayNd &other)=default |
ArrayNdEmpty | ( | ) |
|
overridevirtual |
range | The range we are expecting to read from when using the getValue or operator() functions. |
The range we are hinting that we're about to access repeatedly through individual indexed reads (i.e. using the operator() function).
Implements ArrayNd.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
name | The name of the dimension for which we wish to rerieve its index. |
Implements ArrayNd.
|
overridevirtual |
dimensionName | The name of the dimension for which we wish to retrieve its labels. |
Implements ArrayNd.
|
overridevirtual |
index | The index of the dimension for which we wish to retrieve its name. |
Implements ArrayNd.
|
overridevirtual |
name | The name of the dimension for which we wish to retrieve its size, i.e. the number of elements in the specified dimension. |
Implements ArrayNd.
|
overridevirtual |
index | The index of the dimension for which we wish to retrieve its size, i.e. the number of elements in the specified dimension. |
Implements ArrayNd.
|
overridevirtual |
The Fill Value of the dataset is used to indicate an 'empty' cell. Cells that do not contain any valid data, or data outside the known / valid range, will contain the fill value.
Implements ArrayNd.
|
overridevirtual |
The Fill Value of the dataset is used to indicate an 'empty' cell. Cells that do not contain any valid data, or data outside the known / valid range, will contain the fill value.
Implements ArrayNd.
|
overridevirtual |
dimIndices | The set of coordinates at which we wish to inspect the value. The coordinate indices are assumed to be in the same order as they are stored in the dataset. |
Retrieve a single value from the underlying dataset using array subscript notation. The number of parameters supplied must match the underlying dataset. It is up to the developer to ensure that this always occurs.
The dimensions must be provided in the same order as they are stored in the dataset. This can be queried using getDimensionIndex() This version of the function returns a QVariant which contains the specific underlying type that matches the dataset.
Implements ArrayNd.
|
overridevirtual |
dim0 | The index in the first dimension |
dim1 | The index in the second dimension |
dim2 | The index in the third dimension |
dim3 | The index in the fourth dimension |
dim4 | The index in the fifth dimension |
Retrieve a single value from the underlying dataset using array subscript notation. The number of parameters supplied MUST match the underlying dataset. It is up to the developer to ensure that this always occurs.
The dimensions must be provided in the same order as they are stored in the dataset. This can be queried using getDimensionIndex().
Implements ArrayNd.
|
overridevirtual |
The Fill Value of the dataset is used to indicate an 'empty' cell. Cells that do not contain any valid data, or data outside the known / valid range, will contain the fill value. This function returns a value indicating whether or not a fill value is being used.
Implements ArrayNd.
|
overridevirtual |
index | The index of the dimension we are inspecting. |
Implements ArrayNd.
|
inlinestatic |
|
overridevirtual |
Implements ArrayNd.
|
overridevirtual |
dimIndices | The set of coordinates at which we wish to inspect the value. The coordinate indices are assumed to be in the same order as they are stored in the dataset. |
Retrieve a single value from the underlying dataset using array subscript notation. The number of parameters supplied must match the underlying dataset. It is up to the developer to ensure that this always occurs.
The dimensions must be provided in the same order as they are stored in the dataset. This can be queried using getDimensionIndex()
Implements ArrayNd.
|
overridevirtual |
dim0 | The index in the first dimension |
dim1 | The index in the second dimension |
dim2 | The index in the third dimension |
dim3 | The index in the fourth dimension |
dim4 | The index in the fifth dimension |
Retrieve a single value from the underlying dataset using array subscript notation. The number of parameters supplied MUST match the underlying dataset. It is up to the developer to ensure that this always occurs.
The dimensions must be provided in the same order as they are stored in the dataset. This can be queried using getDimensionIndex().
Implements ArrayNd.
|
default |
|
overridevirtual |
dimensions | The complete list of dimensions we want the dataset to have. |
Sets the dimensions of the dataset. This will result in the allocation of the underlying data storage. If the dataset previously contained data, this will result in a resize of the dataset, which may require the copying of data, the cost of which will vary greatly depending upon the implementation. For newly created cells in the dataset, a fill-value will be used (by default, this will be a default constructed object).
To avoid expensive copying, it is recommended to only invoke this function on an empty (i.e. uninitialized) dataset.
Implements ArrayNd.
|
overridevirtual |
b | Whether or not to use a fill value for this dataset. By default, the fill value will be the default constructed type of the underlying stored data. |
The Fill Value of the dataset is used to indicate an 'empty' cell. Cells that do not contain any valid data, or data outside the known / valid range, will contain the fill value. This function allows the caller to indicate that a fill value is in use in the dataset.
Implements ArrayNd.