6#ifndef imeas_CGeneralDataSequence_included
7#define imeas_CGeneralDataSequence_included
11#include <QtCore/QVector>
38 bool CreateSequence(
int samplesCount,
int channelsCount = 1, std::unique_ptr<const IDataSequenceInfo>&& infoPtr =
nullptr)
override;
44 double GetSample(
int index,
int channel = 0)
const override;
45 void SetSample(
int index,
int channel,
double value)
override;
67 typedef std::vector<double> Samples;
72 std::unique_ptr<const IDataSequenceInfo> m_sequenceInfoPtr;
92 return int(m_samples.size());
Interface for a resampled function with a regular grid design.
BaseClass::ArgumentType ArgumentType
Implementation of fixed-size mathematical vector with specified type of elements.
General implementation of sample sequence interface IDataSequence.
double GetSample(int index, int channel=0) const override
Get sample value at specified index.
int GetSupportedOperations() const override
Get set of flags for supported operations.
const IDataSequenceInfo * GetSequenceInfo() const override
Get additional information about this sequence.
int GetSamplesBufferSize() const
istd::CRange GetLogicalRange(int dimensionIndex) const override
Get logical grid position range for specified dimension.
bool IsEmpty() const override
Return true if this sequence has no sample.
void SetSample(int index, int channel, double value) override
Set sample value at specified index.
bool GetValueAt(const ArgumentType &argument, ResultType &result) const override
ResultType GetValueAt(const ArgumentType &argument) const override
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
int GetSamplesCount() const override
Get size of this raster sequence.
int GetTotalSamplesCount() const override
Get number of samples stored in this container.
const double * GetSamplesBuffer() const
bool CreateFunction(double *dataPtr, const ArgumentType &sizes) override
Create function from input data.
istd::CRange GetResultValueRange(int dimensionIndex, int resultDimension=-1) const override
Get range of result value for the given axis.
int GetGridSize(int dimensionIndex) const override
Get number of samples for specified dimension.
bool CreateSequence(int samplesCount, int channelsCount=1, std::unique_ptr< const IDataSequenceInfo > &&infoPtr=nullptr) override
Create container for sample sequence with specified number of samples, channels and sample depth.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
void ResetSequence() override
Reset this sequence.
int GetChannelsCount() const override
Get number of channels.
bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
General definition of sequence contains samples in regular time grid.
Stores additional data sequence data used to interpret samples value correctly.
Represent input/output persistence archive.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
This namespace contains classes for measurement system implementations.