DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExpInstr::BasicSample Struct Reference

Defines a trivially-copyable basic sample as time (t)-value (f(t)) pairs (t, f(t)). More...

Public Types

using DataType = double
 Data type of time and value. More...
 

Public Member Functions

constexpr BasicSample () noexcept
 Constructs a BasicSample instance setting Value and Time to zero. More...
 
constexpr BasicSample (DataType Value) noexcept
 Constructs a BasicSample instance setting Time to zero. More...
 
constexpr BasicSample (DataType Value, DataType Time) noexcept
 Constructs a BasicSample instance. More...
 

Public Attributes

DataType Value
 Value in a unit as specified by the class derived from DataStreamInstrument. More...
 
DataType Time
 Time in seconds. More...
 

Detailed Description

Defines a trivially-copyable basic sample as time (t)-value (f(t)) pairs (t, f(t)).

Definition at line 85 of file DataStreamInstrument.h.

Member Typedef Documentation

◆ DataType

Data type of time and value.

Definition at line 87 of file DataStreamInstrument.h.

Constructor & Destructor Documentation

◆ BasicSample() [1/3]

constexpr DynExpInstr::BasicSample::BasicSample ( )
inlineconstexprnoexcept

Constructs a BasicSample instance setting Value and Time to zero.

Definition at line 92 of file DataStreamInstrument.h.

◆ BasicSample() [2/3]

constexpr DynExpInstr::BasicSample::BasicSample ( DataType  Value)
inlineconstexprnoexcept

Constructs a BasicSample instance setting Time to zero.

Parameters
ValueValue to initialize Value with

Definition at line 98 of file DataStreamInstrument.h.

◆ BasicSample() [3/3]

constexpr DynExpInstr::BasicSample::BasicSample ( DataType  Value,
DataType  Time 
)
inlineconstexprnoexcept

Constructs a BasicSample instance.

Parameters
ValueValue to initialize Value with
TimeTime to initialize Time with

Definition at line 105 of file DataStreamInstrument.h.

Member Data Documentation

◆ Time

DataType DynExpInstr::BasicSample::Time

Time in seconds.

Definition at line 108 of file DataStreamInstrument.h.

◆ Value

DataType DynExpInstr::BasicSample::Value

Value in a unit as specified by the class derived from DataStreamInstrument.

Definition at line 107 of file DataStreamInstrument.h.


The documentation for this struct was generated from the following file: