Toponaming: Refactor out duplicated code using elementMap()

This commit is contained in:
bgbsww
2024-07-29 15:37:21 -04:00
committed by Chris Hennes
parent aab0b31aec
commit 99b753b006
3 changed files with 17 additions and 63 deletions

View File

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