DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Type describing function consisting of a series of pulses. More...
#include <FunctionGenerator.h>
Public Types | |
using | PulsesType = std::map< double, double > |
Type containing pulses as tuples (time [s], value). The time refers to the beginning of a segment where the resulting function stays at the respective value. The map always stays sorted by time in ascending order. | |
Public Member Functions | |
PulsesDescType ()=default | |
PulsesDescType (const PulsesDescType &Other) | |
Copy constructs a PulsesDescType instance. | |
PulsesDescType (PulsesDescType &&Other) | |
Move constructs a PulsesDescType instance. Reset() is called on Other after the operation. | |
PulsesDescType (const PulsesType &Pulses) | |
Constructs a PulsesDescType instance copying Pulses and setting Offset to 0. | |
PulsesDescType (PulsesType &&Pulses) | |
Constructs a PulsesDescType instance moving from Pulses and setting Offset to 0. Pulses is empty after the operation. | |
PulsesDescType (const std::vector< double > &PulseStarts, const std::vector< double > &PulseAmplitudes, double Offset=0.0) | |
Constructs a PulsesDescType instance filling it with pulse segments specified by their start times and amplitudes given by two separate lists. | |
PulsesDescType & | operator= (PulsesDescType &&Other) |
Move assignment operator. Reset() is called on Other after the operation. | |
void | Reset () |
Removes all pulse segments from Pulses. | |
Public Attributes | |
PulsesType | Pulses |
Series of segments forming the pulse sequence. The resulting function stays constant during a segment. Refer to PulsesType . | |
double | Offset {} |
Offset of the function to be added to each sample. | |
Type describing function consisting of a series of pulses.
Definition at line 122 of file FunctionGenerator.h.
using DynExpInstr::FunctionGeneratorDefs::PulsesDescType::PulsesType = std::map<double, double> |
Type containing pulses as tuples (time [s], value). The time refers to the beginning of a segment where the resulting function stays at the respective value. The map always stays sorted by time in ascending order.
Definition at line 130 of file FunctionGenerator.h.
|
default |
|
inline |
Copy constructs a PulsesDescType
instance.
Other | PulsesDescType instance to copy |
Definition at line 138 of file FunctionGenerator.h.
DynExpInstr::FunctionGeneratorDefs::PulsesDescType::PulsesDescType | ( | PulsesDescType && | Other | ) |
Move constructs a PulsesDescType
instance. Reset()
is called on Other
after the operation.
Other | PulsesDescType instance to move from. |
Definition at line 8 of file FunctionGenerator.cpp.
|
inline |
Constructs a PulsesDescType
instance copying Pulses
and setting Offset to 0.
Pulses | Pulse sequence to copy |
Definition at line 152 of file FunctionGenerator.h.
DynExpInstr::FunctionGeneratorDefs::PulsesDescType::PulsesDescType | ( | PulsesType && | Pulses | ) |
Constructs a PulsesDescType
instance moving from Pulses
and setting Offset to 0. Pulses
is empty after the operation.
Pulses | Pulse sequence to move from. |
Definition at line 14 of file FunctionGenerator.cpp.
DynExpInstr::FunctionGeneratorDefs::PulsesDescType::PulsesDescType | ( | const std::vector< double > & | PulseStarts, |
const std::vector< double > & | PulseAmplitudes, | ||
double | Offset = 0.0 |
||
) |
Constructs a PulsesDescType
instance filling it with pulse segments specified by their start times and amplitudes given by two separate lists.
PulseStarts | List of the start times of the pulses |
PulseAmplitudes | List with the amplitudes (values) of the pulses |
Offset | Offset of the function to be added to each sample. |
Util::InvalidArgException | is thrown if PulseStarts and PulseAmplitudes do not have the same length. |
Definition at line 20 of file FunctionGenerator.cpp.
FunctionGeneratorDefs::PulsesDescType & DynExpInstr::FunctionGeneratorDefs::PulsesDescType::operator= | ( | PulsesDescType && | Other | ) |
Move assignment operator. Reset()
is called on Other
after the operation.
Other | PulsesDescType instance to move from |
PulsesDescType
instance which has been moved to. Definition at line 31 of file FunctionGenerator.cpp.
|
inline |
Removes all pulse segments from Pulses.
Definition at line 187 of file FunctionGenerator.h.
double DynExpInstr::FunctionGeneratorDefs::PulsesDescType::Offset {} |
Offset of the function to be added to each sample.
Definition at line 196 of file FunctionGenerator.h.
PulsesType DynExpInstr::FunctionGeneratorDefs::PulsesDescType::Pulses |
Series of segments forming the pulse sequence. The resulting function stays constant during a segment. Refer to PulsesType
.
Definition at line 194 of file FunctionGenerator.h.