mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0024750: Replace instantiations of TCollection generic classes by NCollection templates -- automatic
Automatic upgrade of code by command "occt_upgrade . -tcollection"
This commit is contained in:
@@ -8,3 +8,10 @@ QANCollection_Alloc.cxx
|
||||
QANCollection_Stl.cxx
|
||||
QANCollection_Common.cxx
|
||||
QANCollection_Common.hxx
|
||||
QANCollection_ListOfPnt.hxx
|
||||
QANCollection_ListIteratorOfListOfPnt.hxx
|
||||
QANCollection_DataMapOfRealPnt.hxx
|
||||
QANCollection_DataMapIteratorOfDataMapOfRealPnt.hxx
|
||||
QANCollection_IndexedDataMapOfRealPnt.hxx
|
||||
QANCollection_DoubleMapOfRealInteger.hxx
|
||||
QANCollection_DoubleMapIteratorOfDoubleMapOfRealInteger.hxx
|
||||
|
@@ -22,20 +22,13 @@ uses
|
||||
gp
|
||||
|
||||
is
|
||||
class ListOfPnt instantiates List from TCollection (Pnt from gp);
|
||||
class DataMapOfRealPnt instantiates DataMap from TCollection
|
||||
(Real from Standard,
|
||||
Pnt from gp,
|
||||
MapRealHasher from TColStd);
|
||||
class IndexedDataMapOfRealPnt instantiates IndexedDataMap from TCollection
|
||||
(Real from Standard,
|
||||
Pnt from gp,
|
||||
MapRealHasher from TColStd);
|
||||
class DoubleMapOfRealInteger instantiates DoubleMap from TCollection
|
||||
(Real from Standard,
|
||||
Integer from Standard,
|
||||
MapRealHasher from TColStd,
|
||||
MapIntegerHasher from TColStd);
|
||||
imported ListOfPnt;
|
||||
imported ListIteratorOfListOfPnt;
|
||||
imported DataMapOfRealPnt;
|
||||
imported DataMapIteratorOfDataMapOfRealPnt;
|
||||
imported IndexedDataMapOfRealPnt;
|
||||
imported DoubleMapOfRealInteger;
|
||||
imported DoubleMapIteratorOfDoubleMapOfRealInteger;
|
||||
|
||||
Commands(DI : in out Interpretor from Draw);
|
||||
CommandsSimple(DI : in out Interpretor from Draw);
|
||||
|
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
#ifndef QANCollection_DataMapIteratorOfDataMapOfRealPnt_HeaderFile
|
||||
#define QANCollection_DataMapIteratorOfDataMapOfRealPnt_HeaderFile
|
||||
|
||||
#include <QANCollection_DataMapOfRealPnt.hxx>
|
||||
|
||||
#endif
|
28
src/QANCollection/QANCollection_DataMapOfRealPnt.hxx
Normal file
28
src/QANCollection/QANCollection_DataMapOfRealPnt.hxx
Normal file
@@ -0,0 +1,28 @@
|
||||
// Created on: 2004-03-05
|
||||
// Created by: Mikhail KUZMITCHEV
|
||||
// Copyright (c) 2004-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 QANCollection_DataMapOfRealPnt_HeaderFile
|
||||
#define QANCollection_DataMapOfRealPnt_HeaderFile
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <TColStd_MapRealHasher.hxx>
|
||||
#include <NCollection_DataMap.hxx>
|
||||
|
||||
typedef NCollection_DataMap<Standard_Real,gp_Pnt,TColStd_MapRealHasher> QANCollection_DataMapOfRealPnt;
|
||||
typedef NCollection_DataMap<Standard_Real,gp_Pnt,TColStd_MapRealHasher>::Iterator QANCollection_DataMapIteratorOfDataMapOfRealPnt;
|
||||
|
||||
|
||||
#endif
|
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
#ifndef QANCollection_DoubleMapIteratorOfDoubleMapOfRealInteger_HeaderFile
|
||||
#define QANCollection_DoubleMapIteratorOfDoubleMapOfRealInteger_HeaderFile
|
||||
|
||||
#include <QANCollection_DoubleMapOfRealInteger.hxx>
|
||||
|
||||
#endif
|
29
src/QANCollection/QANCollection_DoubleMapOfRealInteger.hxx
Normal file
29
src/QANCollection/QANCollection_DoubleMapOfRealInteger.hxx
Normal file
@@ -0,0 +1,29 @@
|
||||
// Created on: 2004-03-05
|
||||
// Created by: Mikhail KUZMITCHEV
|
||||
// Copyright (c) 2004-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 QANCollection_DoubleMapOfRealInteger_HeaderFile
|
||||
#define QANCollection_DoubleMapOfRealInteger_HeaderFile
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TColStd_MapRealHasher.hxx>
|
||||
#include <TColStd_MapIntegerHasher.hxx>
|
||||
#include <NCollection_DoubleMap.hxx>
|
||||
|
||||
typedef NCollection_DoubleMap<Standard_Real,Standard_Integer,TColStd_MapRealHasher,TColStd_MapIntegerHasher> QANCollection_DoubleMapOfRealInteger;
|
||||
typedef NCollection_DoubleMap<Standard_Real,Standard_Integer,TColStd_MapRealHasher,TColStd_MapIntegerHasher>::Iterator QANCollection_DoubleMapIteratorOfDoubleMapOfRealInteger;
|
||||
|
||||
|
||||
#endif
|
27
src/QANCollection/QANCollection_IndexedDataMapOfRealPnt.hxx
Normal file
27
src/QANCollection/QANCollection_IndexedDataMapOfRealPnt.hxx
Normal file
@@ -0,0 +1,27 @@
|
||||
// Created on: 2004-03-05
|
||||
// Created by: Mikhail KUZMITCHEV
|
||||
// Copyright (c) 2004-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 QANCollection_IndexedDataMapOfRealPnt_HeaderFile
|
||||
#define QANCollection_IndexedDataMapOfRealPnt_HeaderFile
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <TColStd_MapRealHasher.hxx>
|
||||
#include <NCollection_IndexedDataMap.hxx>
|
||||
|
||||
typedef NCollection_IndexedDataMap<Standard_Real,gp_Pnt,TColStd_MapRealHasher> QANCollection_IndexedDataMapOfRealPnt;
|
||||
|
||||
|
||||
#endif
|
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
#ifndef QANCollection_ListIteratorOfListOfPnt_HeaderFile
|
||||
#define QANCollection_ListIteratorOfListOfPnt_HeaderFile
|
||||
|
||||
#include <QANCollection_ListOfPnt.hxx>
|
||||
|
||||
#endif
|
26
src/QANCollection/QANCollection_ListOfPnt.hxx
Normal file
26
src/QANCollection/QANCollection_ListOfPnt.hxx
Normal file
@@ -0,0 +1,26 @@
|
||||
// Created on: 2004-03-05
|
||||
// Created by: Mikhail KUZMITCHEV
|
||||
// Copyright (c) 2004-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 QANCollection_ListOfPnt_HeaderFile
|
||||
#define QANCollection_ListOfPnt_HeaderFile
|
||||
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <NCollection_List.hxx>
|
||||
|
||||
typedef NCollection_List<gp_Pnt> QANCollection_ListOfPnt;
|
||||
typedef NCollection_List<gp_Pnt>::Iterator QANCollection_ListIteratorOfListOfPnt;
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user