]> SALOME platform Git repositories - plugins/hexoticplugin.git/blobdiff - src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx
Salome HOME
BUG: HexoticPLUGIN/Size maps: Fixed some dump issues
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hypothesis.cxx
index df82d2c32fac9a1b7f9de054bf89c3340d5ac568..3548bc6df6b94ba548ae94ce6cfd4f8d7e2711b7 100644 (file)
@@ -169,9 +169,16 @@ bool HexoticPlugin_Hypothesis::AddSizeMap(std::string theEntry, double theSize)
   }
 }
 
-void HexoticPlugin_Hypothesis::ClearSizeMaps()
-{
-  _sizeMaps.clear();
+bool HexoticPlugin_Hypothesis::UnsetSizeMap(std::string theEntry) {
+  THexoticSizeMaps::iterator it;
+  it=_sizeMaps.find(theEntry);
+  if( it != _sizeMaps.end() )
+  {
+    _sizeMaps.erase(it);  
+    return true;
+  }
+  else
+    return false;
 }
 
 //=============================================================================