File indexing completed on 2025-01-18 10:04:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef NCollection_HeapAllocator_HeaderFile
0017 #define NCollection_HeapAllocator_HeaderFile
0018
0019 #include <NCollection_BaseAllocator.hxx>
0020
0021
0022
0023
0024
0025
0026 class NCollection_HeapAllocator : public NCollection_BaseAllocator
0027 {
0028 public:
0029
0030 Standard_EXPORT virtual void* Allocate (const Standard_Size theSize) Standard_OVERRIDE;
0031 void* AllocateOptimal(const Standard_Size theSize) Standard_OVERRIDE { return Allocate(theSize); }
0032 Standard_EXPORT virtual void Free (void * anAddress) Standard_OVERRIDE;
0033
0034 Standard_EXPORT static const Handle(NCollection_HeapAllocator)&
0035 GlobalHeapAllocator();
0036
0037 protected:
0038
0039 NCollection_HeapAllocator(void) {}
0040
0041 private:
0042
0043 NCollection_HeapAllocator(const NCollection_HeapAllocator&);
0044
0045 public:
0046
0047 DEFINE_STANDARD_RTTIEXT(NCollection_HeapAllocator,NCollection_BaseAllocator)
0048 };
0049
0050
0051 DEFINE_STANDARD_HANDLE (NCollection_HeapAllocator, NCollection_BaseAllocator)
0052
0053 #endif