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 <string>
13#include <vector>
14
15namespace MantidQt {
16namespace MantidWidgets {
17
18/*
19 * Represents a workspace containing a number of spectra to be fitted.
20 *
21 * Holds a workspace name, and a Spectra object which can represent
22 * a continuous or discontinuous spectra range.
23 */
25public:
26 FunctionModelDataset(std::string workspaceName, FunctionModelSpectra spectra);
27
28 inline const std::string &datasetName() const noexcept { return m_workspaceName; }
29 std::vector<std::string> domainNames() const;
30
31 inline std::size_t numberOfSpectra() const noexcept { return m_spectra.size().value; }
32
33private:
34 std::string m_workspaceName;
36};
37
38} // namespace MantidWidgets
39} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
const std::string & datasetName() const noexcept