From 3edfd1dca683fcd68ccc2142f5f87eb6f4766ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Wed, 10 Oct 2018 14:02:56 +0200 Subject: [PATCH] LocalGrid. Move implementation to cpp file --- .../ReservoirDataModel/RigLocalGrid.cpp | 32 +++++++++++++++++++ .../ReservoirDataModel/RigLocalGrid.h | 8 ++--- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/ApplicationCode/ReservoirDataModel/RigLocalGrid.cpp b/ApplicationCode/ReservoirDataModel/RigLocalGrid.cpp index 652574913d..3a90f32b05 100644 --- a/ApplicationCode/ReservoirDataModel/RigLocalGrid.cpp +++ b/ApplicationCode/ReservoirDataModel/RigLocalGrid.cpp @@ -32,3 +32,35 @@ RigLocalGrid::RigLocalGrid(RigMainGrid* mainGrid): RigLocalGrid::~RigLocalGrid() { } + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +RigGridBase * RigLocalGrid::parentGrid() const +{ + return m_parentGrid; +} + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RigLocalGrid::setParentGrid(RigGridBase * parentGrid) +{ + m_parentGrid = parentGrid; +} + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +size_t RigLocalGrid::positionInParentGrid() const +{ + return m_positionInParentGrid; +} + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RigLocalGrid::setPositionInParentGrid(size_t positionInParentGrid) +{ + m_positionInParentGrid = positionInParentGrid; +} diff --git a/ApplicationCode/ReservoirDataModel/RigLocalGrid.h b/ApplicationCode/ReservoirDataModel/RigLocalGrid.h index 9a0f18d676..657a86f385 100644 --- a/ApplicationCode/ReservoirDataModel/RigLocalGrid.h +++ b/ApplicationCode/ReservoirDataModel/RigLocalGrid.h @@ -25,11 +25,11 @@ public: explicit RigLocalGrid(RigMainGrid* mainGrid); ~RigLocalGrid() override; - RigGridBase * parentGrid() const { return m_parentGrid; } - void setParentGrid(RigGridBase * parentGrid) { m_parentGrid = parentGrid; } + RigGridBase * parentGrid() const; + void setParentGrid(RigGridBase * parentGrid); - size_t positionInParentGrid() const { return m_positionInParentGrid; } - void setPositionInParentGrid(size_t positionInParentGrid) { m_positionInParentGrid = positionInParentGrid; } + size_t positionInParentGrid() const; + void setPositionInParentGrid(size_t positionInParentGrid); private: RigGridBase * m_parentGrid;