Added method ChangeMap (const TColStd_PackedMapOfInteger& theMap).
}
return Standard_False;
}
+
+//=======================================================================
+//function : ChangeMap
+//purpose :
+//=======================================================================
+Standard_Boolean TDataStd_IntPackedMap::ChangeMap (const TColStd_PackedMapOfInteger& theMap)
+{
+ if (!myMap->Map().IsEqual(theMap))
+ {
+ Backup();
+ myMap->ChangeMap().Assign(theMap);
+ return Standard_True;
+ }
+ return Standard_False;
+}
//=======================================================================
//function : Clear
//purpose :
Standard_EXPORT Standard_Boolean ChangeMap (const Handle(TColStd_HPackedMapOfInteger)& theMap);
+ Standard_EXPORT Standard_Boolean ChangeMap (const TColStd_PackedMapOfInteger& theMap);
+
const TColStd_PackedMapOfInteger& GetMap() const { return myMap->Map(); }
const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const { return myMap; }