DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Type describing a spectrum as acquired by the Spectrometer
instrument.
More...
Public Member Functions | |
SpectrumType () | |
Constructs a SpectrumType instance with FrequencyUnit set to FrequencyUnitType::Hz and IntensityUnit set to IntensityUnitType::Counts. More... | |
SpectrumType (FrequencyUnitType FrequencyUnit, IntensityUnitType IntensityUnit) | |
Constructs a SpectrumType instance with the specified units. More... | |
SpectrumType (const SpectrumType &Other) | |
Copy-constructs a SpectrumType instance. More... | |
SpectrumType (SpectrumType &&Other) | |
Move-constructs a SpectrumType instance. More... | |
SpectrumType & | operator= (const SpectrumType &Other) |
Copies a SpectrumType instance's content to this instance. More... | |
SpectrumType & | operator= (SpectrumType &&Other) |
Moves a SpectrumType instance's content to this instance. More... | |
void | Reset () |
Removes all samples from the spectrum (clears Samples). More... | |
auto | GetFrequencyUnit () const noexcept |
Getter for FrequencyUnit. More... | |
auto | GetIntensityUnit () const noexcept |
Getter for IntensityUnit. More... | |
auto & | GetSpectrum () const noexcept |
Getter for Samples. More... | |
auto & | GetSpectrum () noexcept |
Getter for Samples. More... | |
bool | HasSpectrum () const noexcept |
Indicates whether the spectrum is empty. More... | |
Private Attributes | |
FrequencyUnitType | FrequencyUnit |
The spectrum's frequency (x-axis) unit. More... | |
IntensityUnitType | IntensityUnit |
The spectrum's intensity (y-axis) unit. More... | |
std::map< double, double > | Samples |
Samples of the spectrum as tuples in units (FrequencyUnit, IntensityUnit) More... | |
Type describing a spectrum as acquired by the Spectrometer
instrument.
Definition at line 120 of file Spectrometer.h.
|
inline |
Constructs a SpectrumType
instance with FrequencyUnit set to FrequencyUnitType::Hz and IntensityUnit set to IntensityUnitType::Counts.
Definition at line 127 of file Spectrometer.h.
|
inline |
Constructs a SpectrumType
instance with the specified units.
FrequencyUnit | The spectrum's frequency (x-axis) unit. |
IntensityUnit | The spectrum's intensity (y-axis) unit. |
Definition at line 134 of file Spectrometer.h.
|
inline |
Copy-constructs a SpectrumType
instance.
Other | Spectrum to copy from |
Definition at line 140 of file Spectrometer.h.
DynExpInstr::SpectrometerData::SpectrumType::SpectrumType | ( | SpectrumType && | Other | ) |
Move-constructs a SpectrumType
instance.
Other | Spectrum to move from. Samples of Other will be empty after the operation. |
Definition at line 28 of file Spectrometer.cpp.
|
inlinenoexcept |
Getter for FrequencyUnit.
Definition at line 164 of file Spectrometer.h.
|
inlinenoexcept |
Getter for IntensityUnit.
Definition at line 165 of file Spectrometer.h.
|
inlinenoexcept |
Getter for Samples.
Definition at line 166 of file Spectrometer.h.
|
inlinenoexcept |
Getter for Samples.
Definition at line 167 of file Spectrometer.h.
|
inlinenoexcept |
Indicates whether the spectrum is empty.
Definition at line 173 of file Spectrometer.h.
SpectrometerData::SpectrumType & DynExpInstr::SpectrometerData::SpectrumType::operator= | ( | const SpectrumType & | Other | ) |
Copies a SpectrumType
instance's content to this instance.
Other | Spectrum to copy from |
SpectrumType
instance. Definition at line 34 of file Spectrometer.cpp.
SpectrometerData::SpectrumType & DynExpInstr::SpectrometerData::SpectrumType::operator= | ( | SpectrumType && | Other | ) |
Moves a SpectrumType
instance's content to this instance.
Other | Spectrum to move from. Samples of Other will be empty after the operation. |
SpectrumType
instance. Definition at line 43 of file Spectrometer.cpp.
void DynExpInstr::SpectrometerData::SpectrumType::Reset | ( | ) |
Removes all samples from the spectrum (clears Samples).
Definition at line 54 of file Spectrometer.cpp.
|
private |
The spectrum's frequency (x-axis) unit.
Definition at line 176 of file Spectrometer.h.
|
private |
The spectrum's intensity (y-axis) unit.
Definition at line 177 of file Spectrometer.h.
|
private |
Samples of the spectrum as tuples in units (FrequencyUnit, IntensityUnit)
Definition at line 179 of file Spectrometer.h.