mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0033370: Foundation Classes - Moving into STL and Boost functionality
NCollection containers update: - NCollection_Array1 - updated functionality - NCollection_Array2 - NCollection_Array1 as a wrapper for 2array - NCollection_Vector -> NCollection_DynamicArray was renamed and reworked. TCollection: - Use static empty string to avoid allocations on empty string NCollection allocators update: - NCollection_Allocator - allocator that used Standard::Allocate - NCollection_OccAllocator - allocator-wrapper that used OCC BaseAllocator objects - NCollection_IncAllocator - rework to increase performance Standard: - Rework functionality to use different allocation libs - Implement basic of new way to wrap allocations tools - Define 4 ways to allocation (defines in configure stage) Additional changes: - Hash function uses std::hash functionality - size_t as a hash value - New HashUtils with Murmur and FVN hash algo for x32 and x64 - Deprecated _0.cxx and .gxx DE classes reorganized - Create own utility for std memory - Update Standard_Transient to be more platform-independent Math TK changes: - math_Vector -> match_BaseVector<> - Buffer decreased to cash 32 elements instead of 512
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define _Message_Attribute_HeaderFile
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <NCollection_DefineAlloc.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
DEFINE_STANDARD_HANDLE(Message_Attribute, Standard_Transient)
|
||||
|
@@ -253,6 +253,6 @@ void Message_AttributeMeter::DumpJson (Standard_OStream& theOStream,
|
||||
anIterator.More(); anIterator.Next())
|
||||
{
|
||||
OCCT_DUMP_VECTOR_CLASS (theOStream, Message::MetricToString (anIterator.Key()),
|
||||
2, anIterator.Value().first, anIterator.Value().second)
|
||||
2, anIterator.Value(), anIterator.Value())
|
||||
}
|
||||
}
|
||||
|
@@ -15,6 +15,7 @@
|
||||
#define _Message_AttributeObject_HeaderFile
|
||||
|
||||
#include <Message_Attribute.hxx>
|
||||
#include <NCollection_DefineAlloc.hxx>
|
||||
|
||||
|
||||
//! Alert object storing a transient object
|
||||
|
@@ -18,7 +18,6 @@
|
||||
|
||||
#include <Message_ConsoleColor.hxx>
|
||||
#include <Message_Printer.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
|
||||
class Message_PrinterOStream;
|
||||
|
@@ -15,7 +15,6 @@
|
||||
#define _Message_PrinterToReport_HeaderFile
|
||||
|
||||
#include <Message_Printer.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
class Message_Report;
|
||||
|
@@ -271,7 +271,7 @@ public: //! @name Preparation methods
|
||||
if (!theName.IsEmpty())
|
||||
{
|
||||
myIsOwnName = true;
|
||||
myName = (char* )Standard::Allocate (Standard_Size(theName.Length()) + Standard_Size(1));
|
||||
myName = (char* )Standard::AllocateOptimal(Standard_Size(theName.Length()) + Standard_Size(1));
|
||||
char* aName = (char* )myName;
|
||||
memcpy (aName, theName.ToCString(), theName.Length());
|
||||
aName[theName.Length()] = '\0';
|
||||
|
Reference in New Issue
Block a user