Mantid
Loading...
Searching...
No Matches
FunctionModelDataset.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
11
12#include <QList>
13#include <QString>
14#include <QStringList>
15
16namespace MantidQt {
17namespace MantidWidgets {
18
19/*
20 * Represents a workspace containing a number of spectra to be fitted.
21 *
22 * Holds a workspace name, and a Spectra object which can represent
23 * a continuous or discontinuous spectra range.
24 */
26public:
27 FunctionModelDataset(QString workspaceName, FunctionModelSpectra spectra);
28
29 inline QString datasetName() const noexcept { return m_workspaceName; }
30 QStringList domainNames() const;
31
32 inline std::size_t numberOfSpectra() const noexcept { return m_spectra.size().value; }
33
34private:
37};
38
39} // namespace MantidWidgets
40} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...