1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024788: Foundation Classes - remove Dico_Dictionary

Class Dico_Dictionary was replaced by NCollection_DataMap/NCollection_IndexedDataMap classes.
Changed argument name in template class NCollection_Datamap to eliminate redefinitions of static members in dependent code.
This commit is contained in:
ski
2016-10-12 18:02:55 +03:00
committed by apn
parent be70005cb5
commit 997e128f88
85 changed files with 1674 additions and 4530 deletions

View File

@@ -252,24 +252,24 @@ class NCollection_DataMap : public NCollection_BaseMap
}
//! IsBound
Standard_Boolean IsBound(const TheKeyType& K) const
Standard_Boolean IsBound(const TheKeyType& theKey) const
{
DataMapNode* p;
return lookup(K, p);
return lookup(theKey, p);
}
//! UnBind removes Item Key pair from map
Standard_Boolean UnBind(const TheKeyType& K)
Standard_Boolean UnBind(const TheKeyType& theKey)
{
if (IsEmpty())
return Standard_False;
DataMapNode** data = (DataMapNode**) myData1;
Standard_Integer k = Hasher::HashCode(K,NbBuckets());
Standard_Integer k = Hasher::HashCode(theKey,NbBuckets());
DataMapNode* p = data[k];
DataMapNode* q = NULL;
while (p)
{
if (Hasher::IsEqual(p->Key(),K))
if (Hasher::IsEqual(p->Key(), theKey))
{
Decrement();
if (q)