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:
@@ -15,11 +15,11 @@
|
||||
|
||||
#ifndef _Font_NListOfSystemFont_HeaderFile
|
||||
#define _Font_NListOfSystemFont_HeaderFile
|
||||
#include <NCollection_DefineList.hxx>
|
||||
|
||||
#include <NCollection_List.hxx>
|
||||
#include <Font_SystemFont.hxx>
|
||||
DEFINE_LIST (Font_NListOfSystemFont,
|
||||
NCollection_List,
|
||||
Handle(Font_SystemFont))
|
||||
|
||||
typedef NCollection_List<Handle(Font_SystemFont)> Font_NListOfSystemFont;
|
||||
|
||||
inline Standard_Boolean IsEqual (const Handle(Font_SystemFont)& theFirstFont,
|
||||
const Handle(Font_SystemFont)& theSecondFont)
|
||||
|
Reference in New Issue
Block a user