Toponaming: Refactor out duplicated code using elementMap()
This commit is contained in:
@@ -323,6 +323,15 @@ ElementMapPtr ComplexGeoData::elementMap(bool flush) const
|
||||
return _elementMap;
|
||||
}
|
||||
|
||||
ElementMapPtr ComplexGeoData::ensureElementMap(bool flush)
|
||||
{
|
||||
if (!_elementMap) {
|
||||
resetElementMap(std::make_shared<Data::ElementMap>());
|
||||
}
|
||||
return elementMap(flush);
|
||||
|
||||
}
|
||||
|
||||
void ComplexGeoData::flushElementMap() const
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user