mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-16 05:04:11 +08:00
0028782: Shape sewing behavior not consistent for the same CAD file
Get rid of iterations on maps with shape key by replacing simple maps with indexed maps. So iteration is done on integer key. The map containers have been updated to insert into them type definitions of key and value. The new methods RemoveKey() and RemoveFromIndex() have been added to indexed [data] map to be able to remove an arbitrary key from the map. All the code in OCCT has been updated where RemoveLast() and Substitute() methods were used to remove a key from indexed [data] map.
This commit is contained in:
@@ -47,8 +47,14 @@ template < class TheKeyType,
|
||||
class Hasher = NCollection_DefaultHasher<TheKeyType> >
|
||||
class NCollection_DataMap : public NCollection_BaseMap
|
||||
{
|
||||
public:
|
||||
//! STL-compliant typedef for key type
|
||||
typedef TheKeyType key_type;
|
||||
//! STL-compliant typedef for value type
|
||||
typedef TheItemType value_type;
|
||||
|
||||
public:
|
||||
// **************** Adaptation of the TListNode to the DATAmap
|
||||
public:
|
||||
class DataMapNode : public NCollection_TListNode<TheItemType>
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user