[apps/graph/app] Inline accessors in header file

This commit is contained in:
Ruben Dashyan
2019-09-09 14:00:44 +02:00
committed by LeaNumworks
parent 1908c9c674
commit 569bcc26d2
2 changed files with 2 additions and 10 deletions

View File

@@ -43,14 +43,6 @@ App::Descriptor * App::Snapshot::descriptor() {
return &descriptor;
}
CartesianFunctionStore * App::Snapshot::functionStore() {
return &m_functionStore;
}
InteractiveCurveViewRange * App::Snapshot::graphRange() {
return &m_graphRange;
}
void App::Snapshot::tidy() {
m_functionStore.tidy();
m_graphRange.setDelegate(nullptr);

View File

@@ -25,8 +25,8 @@ public:
App * unpack(Container * container) override;
void reset() override;
Descriptor * descriptor() override;
CartesianFunctionStore * functionStore() override;
Shared::InteractiveCurveViewRange * graphRange();
CartesianFunctionStore * functionStore() override { return &m_functionStore; }
Shared::InteractiveCurveViewRange * graphRange() { return &m_graphRange; }
Shared::Interval * intervalForType(Shared::CartesianFunction::PlotType plotType) {
return m_interval + static_cast<size_t>(plotType);
}