mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0029385: OCAF - TDataStd_IntPackedMap lacks interface to set map as TColStd_PackedMapOfInteger
Added method ChangeMap (const TColStd_PackedMapOfInteger& theMap).
This commit is contained in:
parent
fcca9d7cd0
commit
14abe5dc81
@ -84,6 +84,21 @@ Standard_Boolean TDataStd_IntPackedMap::ChangeMap (const Handle(TColStd_HPackedM
|
|||||||
}
|
}
|
||||||
return Standard_False;
|
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
|
//function : Clear
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -60,6 +60,8 @@ public:
|
|||||||
|
|
||||||
Standard_EXPORT Standard_Boolean ChangeMap (const Handle(TColStd_HPackedMapOfInteger)& theMap);
|
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 TColStd_PackedMapOfInteger& GetMap() const { return myMap->Map(); }
|
||||||
|
|
||||||
const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const { return myMap; }
|
const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const { return myMap; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user