Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
"
10
#include "
MantidQtWidgets/Common/FunctionModelSpectra.h
"
11
12
#include <string>
13
#include <vector>
14
15
namespace
MantidQt
{
16
namespace
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
*/
24
struct
EXPORT_OPT_MANTIDQT_COMMON
FunctionModelDataset
{
25
public
:
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
33
private
:
34
std::string
m_workspaceName
;
35
FunctionModelSpectra
m_spectra
;
36
};
37
38
}
// namespace MantidWidgets
39
}
// namespace MantidQt
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
FunctionModelSpectra.h
MantidQt::MantidWidgets::FunctionModelSpectra
Definition
FunctionModelSpectra.h:30
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
MantidQt::MantidWidgets::FunctionModelDataset
Definition
FunctionModelDataset.h:24
MantidQt::MantidWidgets::FunctionModelDataset::m_workspaceName
std::string m_workspaceName
Definition
FunctionModelDataset.h:34
MantidQt::MantidWidgets::FunctionModelDataset::numberOfSpectra
std::size_t numberOfSpectra() const noexcept
Definition
FunctionModelDataset.h:31
MantidQt::MantidWidgets::FunctionModelDataset::m_spectra
FunctionModelSpectra m_spectra
Definition
FunctionModelDataset.h:35
MantidQt::MantidWidgets::FunctionModelDataset::datasetName
const std::string & datasetName() const noexcept
Definition
FunctionModelDataset.h:28
Generated by
1.9.8