[apps/graph][apps/regression][app/sequence] Move model and range

versions to the snapshot

Change-Id: I6ec56ab59d734c0c43a5df32462173c611cc68b3
This commit is contained in:
Émilie Feral
2017-05-18 10:34:50 +02:00
parent 6b2ae04a13
commit e702c1f61b
19 changed files with 88 additions and 45 deletions

View File

@@ -5,6 +5,25 @@ using namespace Poincare;
namespace Shared {
FunctionApp::Snapshot::Snapshot() :
m_cursor(),
m_modelVersion(0),
m_rangeVersion(0)
{
}
CurveViewCursor * FunctionApp::Snapshot::cursor() {
return &m_cursor;
}
uint32_t * FunctionApp::Snapshot::modelVersion() {
return &m_modelVersion;
}
uint32_t * FunctionApp::Snapshot::rangeVersion() {
return &m_rangeVersion;
}
FunctionApp::FunctionApp(Container * container, Snapshot * snapshot, ViewController * rootViewController) :
TextFieldDelegateApp(container, snapshot, rootViewController)
{