mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Renaming and cleaning as preparations for GeoMech property filters
#314
This commit is contained in:
@@ -57,3 +57,33 @@ RivGeoMechPartMgr* RivGeoMechPartMgrCache::partMgr(const Key& key)
|
||||
}
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivGeoMechPartMgrCache::Key::set(unsigned short aGeometryType, int aFrameIndex)
|
||||
{
|
||||
m_frameIndex = aFrameIndex;
|
||||
m_geometryType = aGeometryType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RivGeoMechPartMgrCache::Key::operator<(const Key& other) const
|
||||
{
|
||||
if (m_frameIndex != other.m_frameIndex)
|
||||
{
|
||||
return (m_frameIndex < other.m_frameIndex);
|
||||
}
|
||||
return (m_geometryType < other.m_geometryType);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivGeoMechPartMgrCache::Key::Key(unsigned short aGeometryType, int aFrameIndex)
|
||||
: m_geometryType(aGeometryType), m_frameIndex(aFrameIndex)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user