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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user