20 #ifndef GAIA_FROZENDATASET_H 21 #define GAIA_FROZENDATASET_H 31 class FrozenSearchPoint;
34 template <
typename DataSetType,
typename Po
intType,
typename SearchPo
intType,
typename DistanceType>
37 typedef BaseView<FrozenDataSet, FrozenPoint, FrozenSearchPoint, FrozenDistance> FrozenView;
57 void load(
const QString& filename);
62 void save(
const QString& filename)
const;
75 QStringList pointNames()
const;
88 FrozenPoint point(
const QString& name)
const;
97 QStringList descriptorNames()
const;
132 void addView(FrozenView* view) { Q_UNUSED(view); }
133 void removeView(FrozenView* view) { Q_UNUSED(view); }
143 QMap<QString, QPair<int, int> > _layout;
152 #endif // GAIA_FROZENDATASET_H int dimension() const
Return the number of dimensions of this dataset.
Definition: frozendataset.cpp:36
const QString & pointName(int i) const
Return the name of the point with the given index.
Definition: frozendataset.cpp:47
This class represents a dataset and all related information.
Definition: dataset.h:91
QVector< QString > _names
This variable records the names of the points.
Definition: frozendataset.h:140
static void checkValidFrozenDataSet(const DataSet &dataset)
Checks whether the given dataset would make a valid FrozenDataSet.
Definition: frozendataset.cpp:197
void fromDataSet(const DataSet &dataset)
Note: this method is not made static as a named-constructor, because then we would have to return the...
Definition: frozendataset.cpp:157
Main Gaia namespace, which contains all the library functions.
Definition: addfield.cpp:22
QPair< int, int > descriptorLocation(const QString &descriptorName) const
Return the column indices of beginning and end fo the region spanning the descriptor.
Definition: frozendataset.cpp:181
void setReferenceDataSet(DataSet *dataset=0)
Set the reference dataset, ie: the one used for fetching the values when doing filtered queries...
Definition: frozendataset.cpp:218
int pointIndex(const QString &name) const
Return the index of the point with the given name.
Definition: frozendataset.cpp:51
A FrozenDataSet is a dataset that has been flagged as immutable.
Definition: frozendataset.h:49
int size() const
Return the number of points contained in this dataset.
Definition: frozendataset.cpp:32
const DataSet * referenceDataSet() const
Return the reference dataset.
Definition: frozendataset.cpp:242
void save(const QString &filename) const
Save this dataset to disk.
Definition: frozendataset.cpp:118
void load(const QString &filename)
Load a dataset from disk.
Definition: frozendataset.cpp:67