20 #ifndef ANALYSISRESULTS_H 21 #define ANALYSISRESULTS_H 24 #include <QStringList> 26 #include <QSharedPointer> 39 const mat & GetMatrix(
const QString &key);
40 void AddMatrix(
const QString &key,
const mat &value, QStringList column_headings = QStringList());
41 void AddColumns(
const QStringList &keys,
const mat &value);
42 void AddMetadata(QString key, QString value);
43 void AddField(
const QString &key,
const field<mat> &value);
44 const field<mat> & GetField(
const QString &key);
45 const mat & GetFieldElement(
const QString &key,
const uword &index);
46 bool HasField(
const QString &key)
const;
47 bool HasMatrix(
const QString &key)
const;
48 const QStringList KeyList()
const;
49 const QString name()
const;
50 const QString type()
const;
51 const mat & EmptyMatrix();
52 const QMap<QString, QString> GetMetadata()
const;
53 const QString GetColumnHeading(
const QString &key,
int column);
54 const QString GetRowHeading(
const QString &key,
int row);
55 void SetName(
const QString &new_name);
56 void SetType(
const QString &new_type);
57 QSharedPointer<AnalysisResults> Subset(QStringList matrices, uword start_row, uword end_row);
58 void AddParent(QString key, uword start_row, uword end_row);
59 QMap<QString, uvec> parent_rows();
60 bool Concatenate(QSharedPointer<AnalysisResults> other);
61 QSharedPointer<AnalysisResults> Replicate();
62 void RemoveMatrix(
const QString &key);
78 QMap<QString, QSharedPointer<mat> > matrices_;
80 QMap<QString, QString> metadata_;
81 QMap<QString, QStringList> column_headings_;
82 QMap<QString, QStringList> row_headings_;
83 QMap<QString, QSharedPointer<field<mat> > > fields_;
84 QMap<QString, uvec> parent_rows_;
88 #endif // ANALYSISRESULTS_H
The AnalysisResults class A container for a mat object that allows a mat to be copied to a heap-alloc...