LocalGrid. Move implementation to cpp file

This commit is contained in:
Bjørn Erik Jensen 2018-10-10 14:02:56 +02:00
parent 822645e264
commit 3edfd1dca6
2 changed files with 36 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;