Toposhape/Part: Transfer in PropoertyTopoShape and related

This commit is contained in:
Zheng, Lei
2024-02-29 20:58:51 -05:00
committed by bgbsww
parent 68fd2934cf
commit 2adff99c14
6 changed files with 575 additions and 11 deletions

View File

@@ -189,6 +189,17 @@ const std::string &ComplexGeoData::elementMapPrefix() {
return prefix;
}
std::string ComplexGeoData::getElementMapVersion() const {
return "4";
}
bool ComplexGeoData::checkElementMapVersion(const char * ver) const
{
return !boost::equals(ver, "3")
&& !boost::equals(ver, "4")
&& !boost::starts_with(ver, "3.");
}
size_t ComplexGeoData::getElementMapSize(bool flush) const
{
if (flush) {
@@ -653,5 +664,18 @@ void ComplexGeoData::beforeSave() const
}
}
void ComplexGeoData::hashChildMaps()
{
flushElementMap();
if (_elementMap)
_elementMap->hashChildMaps(Tag);
}
bool ComplexGeoData::hasChildElementMap() const
{
flushElementMap();
return _elementMap && _elementMap->hasChildElementMap();
}
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)