Workspace 6.21.5
|
A name and range of a dimension, generally used with an ArrayNd object. More...
#include <DataAnalysis/DataStructures/nameddimensionrange.h>
Public Types | |
typedef int | size_type |
Public Member Functions | |
NamedDimensionRange (const NamedDimensionRange &other) | |
NamedDimensionRange (const QString &dimensionName="<noname>", size_type firstElem=0, size_type lastElem=0) | |
NamedDimensionRange * | clone () const override |
size_type | numElements () const |
NamedDimensionRange & | operator= (const NamedDimensionRange &rhs) |
Public Member Functions inherited from ObjectGroup | |
~ObjectGroup () override | |
bool | add (const QString &name, DataObject &obj) |
bool | canSerialize () const override |
ObjectGroup * | clone () const override=0 |
bool | empty () const |
void | ensureGroupHasData () |
void | erase (int index) |
DataObject * | getChild (const QString &name) |
const DataObject * | getChild (const QString &name) const |
DataObject & | getDataObject (int index) |
const DataObject & | getDataObject (int index) const |
int | getIndex (const QString &name) const |
const QString & | getName (int index) const |
virtual QString | getPreferedWidget (const QString &name) const |
bool | hasData () const |
bool | haveName (const QString &name) const |
bool | insert (const QString &name, DataObject &obj, int index=-1) |
bool | load (const QJsonDocument &doc) |
bool | load (const SerializedItem &item) override |
bool | save (QJsonDocument &doc) const |
bool | save (SerializedItem &item) const override |
unsigned | size () const |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Serialize | |
virtual | ~Serialize ()=default |
virtual bool | canSerialize () const =0 |
virtual bool | load (const SerializedItem &item)=0 |
virtual bool | save (SerializedItem &item) const =0 |
Public Attributes | |
DataExecution::TypedObject< size_type > | first |
DataExecution::TypedObject< ArrayNdDimensionLabels > | labels |
DataExecution::TypedObject< size_type > | last |
DataExecution::TypedObject< QString > | name |
DataExecution::TypedObject< bool > | unlimited |
Additional Inherited Members | |
Protected Member Functions inherited from ObjectGroup | |
ObjectGroup () | |
void | clear () |
ObjectGroup & | operator= (const ObjectGroup &rhs) |
bool | operator== (const ObjectGroup &rhs) const |
void | swap (ObjectGroup &rhs) |
The NamedDimensionRange class allows us to specify a name and a dimension range for a single dimension. When combined with other dimensions, we have a set of bounding coordinates that define a range in a dataset. It can therefore be used to define the sections of an ArrayNd structure that we read from / wrte to.
typedef int size_type |
size_type is used to represent the size, number of elements and indices of the dimension range. We have chosen a 64bit integer here, as some of the known datasets we work with are larger than 4 gigabytes in size.
NamedDimensionRange | ( | const QString & | dimensionName = "<noname>" , |
NamedDimensionRange::size_type | firstElem = 0 , |
||
NamedDimensionRange::size_type | lastElem = 0 |
||
) |
Constructor with default arguments.
std::runtime_error | If constructor is called with an empty dimensionName. |
NamedDimensionRange | ( | const NamedDimensionRange & | other | ) |
|
overridevirtual |
We redeclare this function only so that the more derived return type is available without casting.
Implements ObjectGroup.
|
inline |
|
inline |
DataExecution::TypedObject<QString> name |
DataExecution::TypedObject<bool> unlimited |