SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
cmbvectorsetset.h
Go to the documentation of this file.
1#ifndef CMBVectorSetSetSET_H
2#define CMBVectorSetSetSET_H
3
4#include "interface.h"
5#include "cmbvectorset.h"
6#include <map>
7
17class CMBVectorSetSet : public Interface, public map<string, CMBVectorSet>
18{
19public:
24
30
37
42 QJsonObject toJsonObject() const override;
43
49 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
50
55 string ToString() const override;
56
65 QTableWidget* ToTable() override;
66
72 bool writetofile(QFile* file) override;
73
81 string Label(const string& vectorset, const string& column, int j) const;
82
90 double valueAt(const string& vectorset, const string& columnlabel, int j) const;
91
98 CMBVector& GetColumn(const string& vectorset, const string& columnlabel);
99
105 void Append(const string& columnlabel, const CMBVectorSet& vectorset);
106
111 unsigned int MaxSize() const;
112
117 double max() const;
118
123 double min() const;
124
125private:
126
127};
128
129#endif // CMBVectorSetSetSET_H
Collection of named CMBVectorSet objects for hierarchical data organization.
double min() const
Finds the minimum value across all vectors in all sets.
CMBVector & GetColumn(const string &vectorset, const string &columnlabel)
Gets reference to a named column vector within a vector set.
double max() const
Finds the maximum value across all vectors in all sets.
string ToString() const override
Converts vector set set to string representation.
double valueAt(const string &vectorset, const string &columnlabel, int j) const
Gets value at specified position in a column within a vector set.
QTableWidget * ToTable() override
Creates a QTableWidget for displaying vector set set data.
bool ReadFromJsonObject(const QJsonObject &jsonobject) override
Deserializes vector set set from JSON format.
string Label(const string &vectorset, const string &column, int j) const
Gets label at specified position in a column within a vector set.
void Append(const string &columnlabel, const CMBVectorSet &vectorset)
Adds or replaces a vector set in the collection.
CMBVectorSetSet()
Default constructor - creates an empty vector set set.
unsigned int MaxSize() const
Finds the maximum size among all vectors in all sets.
bool writetofile(QFile *file) override
Writes vector set set to file.
QJsonObject toJsonObject() const override
Serializes vector set set to JSON format.
CMBVectorSetSet & operator=(const CMBVectorSetSet &mp)
Assignment operator.
Collection of named CMBVector objects for multi-variable analysis.
Vector class with string labels for Chemical Mass Balance analysis.
Definition cmbvector.h:17
Abstract base class providing common serialization and visualization interface.
Definition interface.h:65