mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0026850: Replace nested instantiations of TCollection generic classes by NCollection templates
Remaining instantiations of NCollection generics are converted to NCollection templates; unused and duplicates removed
This commit is contained in:
@@ -25,10 +25,6 @@ Transfer_FindHasher.cxx
|
||||
Transfer_FindHasher.hxx
|
||||
Transfer_HSequenceOfBinder.hxx
|
||||
Transfer_HSequenceOfFinder.hxx
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder_0.cxx
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient_0.cxx
|
||||
Transfer_Iterator.gxx
|
||||
Transfer_IteratorOfProcessForFinder.hxx
|
||||
Transfer_IteratorOfProcessForFinder_0.cxx
|
||||
@@ -62,9 +58,7 @@ Transfer_TransferInput.hxx
|
||||
Transfer_TransferIterator.cxx
|
||||
Transfer_TransferIterator.hxx
|
||||
Transfer_TransferMapOfProcessForFinder.hxx
|
||||
Transfer_TransferMapOfProcessForFinder_0.cxx
|
||||
Transfer_TransferMapOfProcessForTransient.hxx
|
||||
Transfer_TransferMapOfProcessForTransient_0.cxx
|
||||
Transfer_TransferOutput.cxx
|
||||
Transfer_TransferOutput.hxx
|
||||
Transfer_TransferProcess.gxx
|
||||
|
@@ -23,12 +23,12 @@
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Transfer_HSequenceOfFinder.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
class Standard_DomainError;
|
||||
class Transfer_Finder;
|
||||
class Transfer_FindHasher;
|
||||
class Transfer_ProcessForFinder;
|
||||
class Transfer_TransferMapOfProcessForFinder;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder;
|
||||
class Transfer_IteratorOfProcessForFinder;
|
||||
class Transfer_Binder;
|
||||
class Transfer_SimpleBinderOfTransient;
|
||||
|
@@ -24,21 +24,11 @@
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
#include <Transfer_ProcessForFinder.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_IteratorOfProcessForFinder.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_SimpleBinderOfTransient.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheStart Handle(Transfer_Finder)
|
||||
#define TheStart_hxx <Transfer_Finder.hxx>
|
||||
#define TheMapHasher Transfer_FindHasher
|
||||
@@ -48,16 +38,10 @@
|
||||
#define TheList_hxx <Transfer_HSequenceOfFinder.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForFinder
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForFinder
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForFinder.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForFinder
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForFinder.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForFinder)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForFinder
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForFinder.hxx>
|
||||
|
@@ -24,11 +24,11 @@
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <TColStd_MapTransientHasher.hxx>
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
|
||||
class Standard_DomainError;
|
||||
class Standard_Transient;
|
||||
class Transfer_ProcessForTransient;
|
||||
class Transfer_TransferMapOfProcessForTransient;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
|
||||
class Transfer_IteratorOfProcessForTransient;
|
||||
class Transfer_Binder;
|
||||
class Transfer_SimpleBinderOfTransient;
|
||||
|
@@ -23,20 +23,10 @@
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Transfer_ProcessForTransient.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_IteratorOfProcessForTransient.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_SimpleBinderOfTransient.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheStart Handle(Standard_Transient)
|
||||
#define TheStart_hxx <Standard_Transient.hxx>
|
||||
#define TheMapHasher TColStd_MapTransientHasher
|
||||
@@ -46,16 +36,10 @@
|
||||
#define TheList_hxx <TColStd_HSequenceOfTransient.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForTransient
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForTransient
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForTransient.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForTransient
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForTransient.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForTransient)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForTransient
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForTransient.hxx>
|
||||
|
@@ -1,102 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder_HeaderFile
|
||||
#define _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TCollection_MapNodePtr.hxx>
|
||||
#include <TCollection_MapNode.hxx>
|
||||
class Transfer_Finder;
|
||||
class Transfer_Binder;
|
||||
class Transfer_FindHasher;
|
||||
class Transfer_TransferMapOfProcessForFinder;
|
||||
|
||||
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder;
|
||||
DEFINE_STANDARD_HANDLE(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder, TCollection_MapNode)
|
||||
|
||||
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder : public TCollection_MapNode
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder(const Handle(Transfer_Finder)& K1, const Standard_Integer K2, const Handle(Transfer_Binder)& I, const TCollection_MapNodePtr& n1, const TCollection_MapNodePtr& n2);
|
||||
|
||||
Handle(Transfer_Finder)& Key1() const;
|
||||
|
||||
Standard_Integer& Key2() const;
|
||||
|
||||
TCollection_MapNodePtr& Next2() const;
|
||||
|
||||
Handle(Transfer_Binder)& Value() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder,TCollection_MapNode)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(Transfer_Finder) myKey1;
|
||||
Standard_Integer myKey2;
|
||||
Handle(Transfer_Binder) myValue;
|
||||
TCollection_MapNodePtr myNext2;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#define TheKey Handle(Transfer_Finder)
|
||||
#define TheKey_hxx <Transfer_Finder.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher Transfer_FindHasher
|
||||
#define Hasher_hxx <Transfer_FindHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
#include <TCollection_IndexedDataMapNode.lxx>
|
||||
|
||||
#undef TheKey
|
||||
#undef TheKey_hxx
|
||||
#undef TheItem
|
||||
#undef TheItem_hxx
|
||||
#undef Hasher
|
||||
#undef Hasher_hxx
|
||||
#undef TCollection_IndexedDataMapNode
|
||||
#undef TCollection_IndexedDataMapNode_hxx
|
||||
#undef Handle_TCollection_IndexedDataMapNode
|
||||
#undef TCollection_IndexedDataMap
|
||||
#undef TCollection_IndexedDataMap_hxx
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Transfer_Finder.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheKey Handle(Transfer_Finder)
|
||||
#define TheKey_hxx <Transfer_Finder.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher Transfer_FindHasher
|
||||
#define Hasher_hxx <Transfer_FindHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <TCollection_IndexedDataMapNode.gxx>
|
||||
|
@@ -1,102 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient_HeaderFile
|
||||
#define _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TCollection_MapNodePtr.hxx>
|
||||
#include <TCollection_MapNode.hxx>
|
||||
#include <TColStd_MapTransientHasher.hxx>
|
||||
class Standard_Transient;
|
||||
class Transfer_Binder;
|
||||
class Transfer_TransferMapOfProcessForTransient;
|
||||
|
||||
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
|
||||
DEFINE_STANDARD_HANDLE(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient, TCollection_MapNode)
|
||||
|
||||
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient : public TCollection_MapNode
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient(const Handle(Standard_Transient)& K1, const Standard_Integer K2, const Handle(Transfer_Binder)& I, const TCollection_MapNodePtr& n1, const TCollection_MapNodePtr& n2);
|
||||
|
||||
Handle(Standard_Transient)& Key1() const;
|
||||
|
||||
Standard_Integer& Key2() const;
|
||||
|
||||
TCollection_MapNodePtr& Next2() const;
|
||||
|
||||
Handle(Transfer_Binder)& Value() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient,TCollection_MapNode)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(Standard_Transient) myKey1;
|
||||
Standard_Integer myKey2;
|
||||
Handle(Transfer_Binder) myValue;
|
||||
TCollection_MapNodePtr myNext2;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#define TheKey Handle(Standard_Transient)
|
||||
#define TheKey_hxx <Standard_Transient.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher TColStd_MapTransientHasher
|
||||
#define Hasher_hxx <TColStd_MapTransientHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
|
||||
#include <TCollection_IndexedDataMapNode.lxx>
|
||||
|
||||
#undef TheKey
|
||||
#undef TheKey_hxx
|
||||
#undef TheItem
|
||||
#undef TheItem_hxx
|
||||
#undef Hasher
|
||||
#undef Hasher_hxx
|
||||
#undef TCollection_IndexedDataMapNode
|
||||
#undef TCollection_IndexedDataMapNode_hxx
|
||||
#undef Handle_TCollection_IndexedDataMapNode
|
||||
#undef TCollection_IndexedDataMap
|
||||
#undef TCollection_IndexedDataMap_hxx
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient_HeaderFile
|
@@ -1,46 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheKey Handle(Standard_Transient)
|
||||
#define TheKey_hxx <Standard_Transient.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher TColStd_MapTransientHasher
|
||||
#define Hasher_hxx <TColStd_MapTransientHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <TCollection_IndexedDataMapNode.gxx>
|
||||
|
@@ -23,18 +23,15 @@
|
||||
|
||||
#include <Transfer_HSequenceOfFinder.hxx>
|
||||
#include <Transfer_TransferIterator.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
class Standard_NoSuchObject;
|
||||
class Transfer_Finder;
|
||||
class Transfer_FindHasher;
|
||||
class Transfer_ProcessForFinder;
|
||||
class Transfer_TransferMapOfProcessForFinder;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder;
|
||||
class Transfer_ActorOfProcessForFinder;
|
||||
class Transfer_Binder;
|
||||
|
||||
|
||||
|
||||
class Transfer_IteratorOfProcessForFinder : public Transfer_TransferIterator
|
||||
{
|
||||
public:
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
#include <Transfer_ProcessForFinder.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_ActorOfProcessForFinder.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
|
||||
@@ -35,16 +34,10 @@
|
||||
#define TheList_hxx <Transfer_HSequenceOfFinder.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForFinder
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForFinder
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForFinder.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForFinder
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForFinder.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForFinder)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForFinder
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForFinder.hxx>
|
||||
|
@@ -23,18 +23,14 @@
|
||||
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
#include <Transfer_TransferIterator.hxx>
|
||||
#include <TColStd_MapTransientHasher.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
|
||||
class Standard_NoSuchObject;
|
||||
class Standard_Transient;
|
||||
class Transfer_ProcessForTransient;
|
||||
class Transfer_TransferMapOfProcessForTransient;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
|
||||
class Transfer_ActorOfProcessForTransient;
|
||||
class Transfer_Binder;
|
||||
|
||||
|
||||
|
||||
class Transfer_IteratorOfProcessForTransient : public Transfer_TransferIterator
|
||||
{
|
||||
public:
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Transfer_ProcessForTransient.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_ActorOfProcessForTransient.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
|
||||
@@ -34,16 +33,10 @@
|
||||
#define TheList_hxx <TColStd_HSequenceOfTransient.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForTransient
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForTransient
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForTransient.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForTransient
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForTransient.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForTransient)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForTransient
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForTransient.hxx>
|
||||
|
@@ -17,17 +17,10 @@
|
||||
#ifndef _Transfer_ProcessForFinder_HeaderFile
|
||||
#define _Transfer_ProcessForFinder_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TColStd_IndexedMapOfInteger.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Transfer_HSequenceOfFinder.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
class Message_Messenger;
|
||||
class Transfer_Finder;
|
||||
class Transfer_Binder;
|
||||
@@ -36,8 +29,6 @@ class Message_ProgressIndicator;
|
||||
class Interface_InterfaceError;
|
||||
class Transfer_TransferFailure;
|
||||
class Transfer_FindHasher;
|
||||
class Transfer_TransferMapOfProcessForFinder;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder;
|
||||
class Transfer_IteratorOfProcessForFinder;
|
||||
class Message_Msg;
|
||||
class Interface_Check;
|
||||
|
@@ -27,22 +27,12 @@
|
||||
#include <Transfer_TransferFailure.hxx>
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#include <Transfer_IteratorOfProcessForFinder.hxx>
|
||||
#include <Message_Msg.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Interface_CheckIterator.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheStart Handle(Transfer_Finder)
|
||||
#define TheStart_hxx <Transfer_Finder.hxx>
|
||||
#define TheMapHasher Transfer_FindHasher
|
||||
@@ -52,16 +42,10 @@
|
||||
#define TheList_hxx <Transfer_HSequenceOfFinder.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForFinder
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForFinder
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForFinder.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForFinder
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForFinder.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForFinder)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForFinder
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForFinder.hxx>
|
||||
|
@@ -17,18 +17,11 @@
|
||||
#ifndef _Transfer_ProcessForTransient_HeaderFile
|
||||
#define _Transfer_ProcessForTransient_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TColStd_IndexedMapOfInteger.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <TColStd_MapTransientHasher.hxx>
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
class Message_Messenger;
|
||||
class Standard_Transient;
|
||||
class Transfer_Binder;
|
||||
@@ -36,8 +29,6 @@ class Transfer_ActorOfProcessForTransient;
|
||||
class Message_ProgressIndicator;
|
||||
class Interface_InterfaceError;
|
||||
class Transfer_TransferFailure;
|
||||
class Transfer_TransferMapOfProcessForTransient;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
|
||||
class Transfer_IteratorOfProcessForTransient;
|
||||
class Message_Msg;
|
||||
class Interface_Check;
|
||||
|
@@ -26,21 +26,11 @@
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Transfer_TransferFailure.hxx>
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#include <Transfer_IteratorOfProcessForTransient.hxx>
|
||||
#include <Message_Msg.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CheckIterator.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheStart Handle(Standard_Transient)
|
||||
#define TheStart_hxx <Standard_Transient.hxx>
|
||||
#define TheMapHasher TColStd_MapTransientHasher
|
||||
@@ -50,16 +40,10 @@
|
||||
#define TheList_hxx <TColStd_HSequenceOfTransient.hxx>
|
||||
#define Transfer_TransferMap Transfer_TransferMapOfProcessForTransient
|
||||
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define Transfer_IndexedDataMapNodeOfTransferMap_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Transfer_Iterator Transfer_IteratorOfProcessForTransient
|
||||
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForTransient.hxx>
|
||||
#define Transfer_Actor Transfer_ActorOfProcessForTransient
|
||||
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForTransient.hxx>
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_IndexedDataMapNodeOfTransferMap Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForTransient)
|
||||
#define Transfer_TransferProcess Transfer_ProcessForTransient
|
||||
#define Transfer_TransferProcess_hxx <Transfer_ProcessForTransient.hxx>
|
||||
|
@@ -17,159 +17,11 @@
|
||||
#ifndef _Transfer_TransferMapOfProcessForFinder_HeaderFile
|
||||
#define _Transfer_TransferMapOfProcessForFinder_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TCollection_BasicMap.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
class Standard_DomainError;
|
||||
class Standard_OutOfRange;
|
||||
class Standard_NoSuchObject;
|
||||
class Transfer_Finder;
|
||||
class Transfer_Binder;
|
||||
class Transfer_FindHasher;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder;
|
||||
|
||||
|
||||
|
||||
class Transfer_TransferMapOfProcessForFinder : public TCollection_BasicMap
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Constructs an IndexedDataMap with NbBuckets
|
||||
//! (defaulted to 1) buckets.
|
||||
//! Note that the map will be automatically redimensioned
|
||||
//! during its use if the number of entries becomes too large.
|
||||
//! Use:
|
||||
//! - the function Add to add an entry (key, item, index) in the map,
|
||||
//! - operator() to read an item from an index, or to
|
||||
//! assign a new value to this item,
|
||||
//! - the function FindFromKey or ChangeFromKey to
|
||||
//! read an item from a key, or to assign a new value to this item,
|
||||
//! - the function RemoveLast to remove the last entry from the map,
|
||||
//! - and other available edition and querying functions.
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForFinder(const Standard_Integer NbBuckets = 1);
|
||||
|
||||
//! Replace the content of this map by the content of
|
||||
//! the map <Other>.
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForFinder& Assign (const Transfer_TransferMapOfProcessForFinder& Other);
|
||||
Transfer_TransferMapOfProcessForFinder& operator = (const Transfer_TransferMapOfProcessForFinder& Other)
|
||||
{
|
||||
return Assign(Other);
|
||||
}
|
||||
|
||||
//! Changes the number of buckets of <me> to be
|
||||
//! <NbBuckets>. The entries (key + item + index) already
|
||||
//! stored in this map are maintained.
|
||||
Standard_EXPORT void ReSize (const Standard_Integer NbBuckets);
|
||||
|
||||
//! Removes all keys in the map.
|
||||
Standard_EXPORT void Clear();
|
||||
~Transfer_TransferMapOfProcessForFinder()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
||||
//! Adds the Key <K> to the Map <me>. Returns the
|
||||
//! index of the Key. The key is new in the map if
|
||||
//! Extent has been incremented. The Item <I> is
|
||||
//! stored with the key. If the key was already in the
|
||||
//! map the previous item is not replaced by <I>.
|
||||
Standard_EXPORT Standard_Integer Add (const Handle(Transfer_Finder)& K, const Handle(Transfer_Binder)& I);
|
||||
|
||||
//! Substitutes the Key at index <I> with <K>. <I>
|
||||
//! must be a valid index, <K> must be a new key. <T>
|
||||
//! becomes the Item stored with <K>.
|
||||
//! Trigger: Raises OutOfRange if I < 1 or I > Extent.
|
||||
//! Raises DomainError if Contains(K).
|
||||
Standard_EXPORT void Substitute (const Standard_Integer I, const Handle(Transfer_Finder)& K, const Handle(Transfer_Binder)& T);
|
||||
|
||||
//! Removes the last key entered in the map, i.e the
|
||||
//! key of index Extent().
|
||||
//! I must be a valid index and K must be a new key.
|
||||
//! Exceptions
|
||||
//! - Standard_OutOfRange if the index I is less than 1 or
|
||||
//! greater than the number of entries in this map.
|
||||
//! - Standard_DomainError if the key K is already in this map.
|
||||
Standard_EXPORT void RemoveLast();
|
||||
|
||||
//! Returns True if the key <K> is stored in the map <me>.
|
||||
Standard_EXPORT Standard_Boolean Contains (const Handle(Transfer_Finder)& K) const;
|
||||
|
||||
//! Returns the Key of index <I>.
|
||||
//! Exceptions
|
||||
//! Standard_OutOfRange if I is less than 1 or greater than
|
||||
//! the number of entries in this map.
|
||||
Standard_EXPORT const Handle(Transfer_Finder)& FindKey (const Standard_Integer I) const;
|
||||
|
||||
//! Returns the Item of index <I>.
|
||||
Standard_EXPORT const Handle(Transfer_Binder)& FindFromIndex (const Standard_Integer I) const;
|
||||
const Handle(Transfer_Binder)& operator () (const Standard_Integer I) const
|
||||
{
|
||||
return FindFromIndex(I);
|
||||
}
|
||||
|
||||
//! Returns the Item of index <I>. The Item can be
|
||||
//! modified with the syntax aMap(Index) = newItem.
|
||||
Standard_EXPORT Handle(Transfer_Binder)& ChangeFromIndex (const Standard_Integer I);
|
||||
Handle(Transfer_Binder)& operator () (const Standard_Integer I)
|
||||
{
|
||||
return ChangeFromIndex(I);
|
||||
}
|
||||
|
||||
//! Returns the index of the key <K>.
|
||||
//! Returns 0 if K is not in the map.
|
||||
Standard_EXPORT Standard_Integer FindIndex (const Handle(Transfer_Finder)& K) const;
|
||||
|
||||
//! Returns the Item of the key <K>
|
||||
//! Trigger: Raises NoSuchObject if K is not in the map.
|
||||
Standard_EXPORT const Handle(Transfer_Binder)& FindFromKey (const Handle(Transfer_Finder)& K) const;
|
||||
|
||||
//! Returns the Item of the key <K>
|
||||
//! Trigger: Raises NoSuchObject if K is not in the map.
|
||||
Standard_EXPORT Handle(Transfer_Binder)& ChangeFromKey (const Handle(Transfer_Finder)& K);
|
||||
|
||||
//! Returns the address of Item of the key <K>
|
||||
//! or NULL if K is not in the map.
|
||||
Standard_EXPORT Standard_Address FindFromKey1 (const Handle(Transfer_Finder)& K) const;
|
||||
|
||||
//! Returns the address of Item of the key <K>
|
||||
//! or NULL if K is not in the map.
|
||||
Standard_EXPORT Standard_Address ChangeFromKey1 (const Handle(Transfer_Finder)& K);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
//! As copying Map is an expensive operation it is
|
||||
//! incorrect to do it implicitly. This constructor
|
||||
//! will raise an error if the Map is not empty. To copy the
|
||||
//! content of a Map use the Assign method (operator =).
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForFinder(const Transfer_TransferMapOfProcessForFinder& Other);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include <NCollection_IndexedDataMap.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_Finder.hxx>
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
|
||||
typedef NCollection_IndexedDataMap<Handle(Transfer_Finder),Handle(Transfer_Binder),Transfer_FindHasher> Transfer_TransferMapOfProcessForFinder;
|
||||
|
||||
#endif // _Transfer_TransferMapOfProcessForFinder_HeaderFile
|
||||
|
@@ -1,40 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <Transfer_Finder.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_FindHasher.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
|
||||
|
||||
#define TheKey Handle(Transfer_Finder)
|
||||
#define TheKey_hxx <Transfer_Finder.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher Transfer_FindHasher
|
||||
#define Hasher_hxx <Transfer_FindHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForFinder
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForFinder.hxx>
|
||||
#include <TCollection_IndexedDataMap.gxx>
|
||||
|
@@ -17,159 +17,10 @@
|
||||
#ifndef _Transfer_TransferMapOfProcessForTransient_HeaderFile
|
||||
#define _Transfer_TransferMapOfProcessForTransient_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TCollection_BasicMap.hxx>
|
||||
#include <NCollection_IndexedDataMap.hxx>
|
||||
#include <TColStd_MapTransientHasher.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
class Standard_DomainError;
|
||||
class Standard_OutOfRange;
|
||||
class Standard_NoSuchObject;
|
||||
class Standard_Transient;
|
||||
class Transfer_Binder;
|
||||
class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
|
||||
|
||||
|
||||
|
||||
class Transfer_TransferMapOfProcessForTransient : public TCollection_BasicMap
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Constructs an IndexedDataMap with NbBuckets
|
||||
//! (defaulted to 1) buckets.
|
||||
//! Note that the map will be automatically redimensioned
|
||||
//! during its use if the number of entries becomes too large.
|
||||
//! Use:
|
||||
//! - the function Add to add an entry (key, item, index) in the map,
|
||||
//! - operator() to read an item from an index, or to
|
||||
//! assign a new value to this item,
|
||||
//! - the function FindFromKey or ChangeFromKey to
|
||||
//! read an item from a key, or to assign a new value to this item,
|
||||
//! - the function RemoveLast to remove the last entry from the map,
|
||||
//! - and other available edition and querying functions.
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForTransient(const Standard_Integer NbBuckets = 1);
|
||||
|
||||
//! Replace the content of this map by the content of
|
||||
//! the map <Other>.
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForTransient& Assign (const Transfer_TransferMapOfProcessForTransient& Other);
|
||||
Transfer_TransferMapOfProcessForTransient& operator = (const Transfer_TransferMapOfProcessForTransient& Other)
|
||||
{
|
||||
return Assign(Other);
|
||||
}
|
||||
|
||||
//! Changes the number of buckets of <me> to be
|
||||
//! <NbBuckets>. The entries (key + item + index) already
|
||||
//! stored in this map are maintained.
|
||||
Standard_EXPORT void ReSize (const Standard_Integer NbBuckets);
|
||||
|
||||
//! Removes all keys in the map.
|
||||
Standard_EXPORT void Clear();
|
||||
~Transfer_TransferMapOfProcessForTransient()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
||||
//! Adds the Key <K> to the Map <me>. Returns the
|
||||
//! index of the Key. The key is new in the map if
|
||||
//! Extent has been incremented. The Item <I> is
|
||||
//! stored with the key. If the key was already in the
|
||||
//! map the previous item is not replaced by <I>.
|
||||
Standard_EXPORT Standard_Integer Add (const Handle(Standard_Transient)& K, const Handle(Transfer_Binder)& I);
|
||||
|
||||
//! Substitutes the Key at index <I> with <K>. <I>
|
||||
//! must be a valid index, <K> must be a new key. <T>
|
||||
//! becomes the Item stored with <K>.
|
||||
//! Trigger: Raises OutOfRange if I < 1 or I > Extent.
|
||||
//! Raises DomainError if Contains(K).
|
||||
Standard_EXPORT void Substitute (const Standard_Integer I, const Handle(Standard_Transient)& K, const Handle(Transfer_Binder)& T);
|
||||
|
||||
//! Removes the last key entered in the map, i.e the
|
||||
//! key of index Extent().
|
||||
//! I must be a valid index and K must be a new key.
|
||||
//! Exceptions
|
||||
//! - Standard_OutOfRange if the index I is less than 1 or
|
||||
//! greater than the number of entries in this map.
|
||||
//! - Standard_DomainError if the key K is already in this map.
|
||||
Standard_EXPORT void RemoveLast();
|
||||
|
||||
//! Returns True if the key <K> is stored in the map <me>.
|
||||
Standard_EXPORT Standard_Boolean Contains (const Handle(Standard_Transient)& K) const;
|
||||
|
||||
//! Returns the Key of index <I>.
|
||||
//! Exceptions
|
||||
//! Standard_OutOfRange if I is less than 1 or greater than
|
||||
//! the number of entries in this map.
|
||||
Standard_EXPORT const Handle(Standard_Transient)& FindKey (const Standard_Integer I) const;
|
||||
|
||||
//! Returns the Item of index <I>.
|
||||
Standard_EXPORT const Handle(Transfer_Binder)& FindFromIndex (const Standard_Integer I) const;
|
||||
const Handle(Transfer_Binder)& operator () (const Standard_Integer I) const
|
||||
{
|
||||
return FindFromIndex(I);
|
||||
}
|
||||
|
||||
//! Returns the Item of index <I>. The Item can be
|
||||
//! modified with the syntax aMap(Index) = newItem.
|
||||
Standard_EXPORT Handle(Transfer_Binder)& ChangeFromIndex (const Standard_Integer I);
|
||||
Handle(Transfer_Binder)& operator () (const Standard_Integer I)
|
||||
{
|
||||
return ChangeFromIndex(I);
|
||||
}
|
||||
|
||||
//! Returns the index of the key <K>.
|
||||
//! Returns 0 if K is not in the map.
|
||||
Standard_EXPORT Standard_Integer FindIndex (const Handle(Standard_Transient)& K) const;
|
||||
|
||||
//! Returns the Item of the key <K>
|
||||
//! Trigger: Raises NoSuchObject if K is not in the map.
|
||||
Standard_EXPORT const Handle(Transfer_Binder)& FindFromKey (const Handle(Standard_Transient)& K) const;
|
||||
|
||||
//! Returns the Item of the key <K>
|
||||
//! Trigger: Raises NoSuchObject if K is not in the map.
|
||||
Standard_EXPORT Handle(Transfer_Binder)& ChangeFromKey (const Handle(Standard_Transient)& K);
|
||||
|
||||
//! Returns the address of Item of the key <K>
|
||||
//! or NULL if K is not in the map.
|
||||
Standard_EXPORT Standard_Address FindFromKey1 (const Handle(Standard_Transient)& K) const;
|
||||
|
||||
//! Returns the address of Item of the key <K>
|
||||
//! or NULL if K is not in the map.
|
||||
Standard_EXPORT Standard_Address ChangeFromKey1 (const Handle(Standard_Transient)& K);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
//! As copying Map is an expensive operation it is
|
||||
//! incorrect to do it implicitly. This constructor
|
||||
//! will raise an error if the Map is not empty. To copy the
|
||||
//! content of a Map use the Assign method (operator =).
|
||||
Standard_EXPORT Transfer_TransferMapOfProcessForTransient(const Transfer_TransferMapOfProcessForTransient& Other);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include <Transfer_Binder.hxx>
|
||||
|
||||
typedef NCollection_IndexedDataMap<Handle(Standard_Transient),Handle(Transfer_Binder),TColStd_MapTransientHasher> Transfer_TransferMapOfProcessForTransient;
|
||||
|
||||
#endif // _Transfer_TransferMapOfProcessForTransient_HeaderFile
|
||||
|
@@ -1,39 +0,0 @@
|
||||
// Created on: 1992-02-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1992-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Transfer_Binder.hxx>
|
||||
#include <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
|
||||
|
||||
#define TheKey Handle(Standard_Transient)
|
||||
#define TheKey_hxx <Standard_Transient.hxx>
|
||||
#define TheItem Handle(Transfer_Binder)
|
||||
#define TheItem_hxx <Transfer_Binder.hxx>
|
||||
#define Hasher TColStd_MapTransientHasher
|
||||
#define Hasher_hxx <TColStd_MapTransientHasher.hxx>
|
||||
#define TCollection_IndexedDataMapNode Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMapNode_hxx <Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient.hxx>
|
||||
#define Handle_TCollection_IndexedDataMapNode Handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient)
|
||||
#define TCollection_IndexedDataMap Transfer_TransferMapOfProcessForTransient
|
||||
#define TCollection_IndexedDataMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
|
||||
#include <TCollection_IndexedDataMap.gxx>
|
||||
|
Reference in New Issue
Block a user