ScalarSeries.cpp
13 lines
| 424 B
| text/x-c
|
CppLexer
Alexandre Leroux
|
r118 | #include <Data/ScalarSeries.h> | ||
Alexandre Leroux
|
r164 | ScalarSeries::ScalarSeries(int size, Unit xAxisUnit, Unit valuesUnit) | ||
: DataSeries{std::make_shared<ArrayData<1> >(size), std::move(xAxisUnit), | ||||
std::make_shared<ArrayData<1> >(size), std::move(valuesUnit)} | ||||
Alexandre Leroux
|
r118 | { | ||
} | ||||
void ScalarSeries::setData(int index, double x, double value) noexcept | ||||
{ | ||||
xAxisData()->setData(index, x); | ||||
valuesData()->setData(index, value); | ||||
} | ||||