mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024911: Avoid using virtual functions in NCollection classes
NCollection_BaseCollection class, relevant header files, and macro DEFINE_BASECOLLECTION removed. Hence methods Assign() from other compatible (via inheritance of BaseCollection) collections are not available any more, as well as base Iterator class. All methods of Iterator classes are made non-virtual, allowing their inline expansion for better performance. OCCT-specific operators new and delete added to collection classes and removed from iterator classes.
This commit is contained in:
@@ -18,17 +18,9 @@
|
||||
#ifndef TObj_SequenceOfIterator_HeaderFile
|
||||
#define TObj_SequenceOfIterator_HeaderFile
|
||||
|
||||
#include <NCollection_DefineBaseCollection.hxx>
|
||||
#include <NCollection_DefineSequence.hxx>
|
||||
|
||||
#include <NCollection_Sequence.hxx>
|
||||
#include <TObj_ObjectIterator.hxx>
|
||||
|
||||
DEFINE_BASECOLLECTION (TObj_CollectionOfIterator, Handle(TObj_ObjectIterator))
|
||||
DEFINE_SEQUENCE (TObj_SequenceOfIterator, TObj_CollectionOfIterator,
|
||||
Handle(TObj_ObjectIterator))
|
||||
typedef NCollection_Sequence<Handle(TObj_ObjectIterator)> TObj_SequenceOfIterator;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma once
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user