Open CASCADE Technology 6.6.0
|
#include <Standard_MMgrRaw.hxx>
Public Member Functions | |
Standard_MMgrRaw (const Standard_Boolean aClear=Standard_False) | |
Constructor; if aClear is True, the memory will be nullified upon allocation. | |
virtual Standard_Address | Allocate (const Standard_Size aSize) |
Allocate aSize bytes. | |
virtual Standard_Address | Reallocate (Standard_Address &aPtr, const Standard_Size aSize) |
Reallocate aPtr to the size aSize. The pointer aPtr is nullified; new pointer is returned. | |
virtual void | Free (Standard_Address &) |
Free allocated memory. The pointer is nullified. | |
Protected Attributes | |
Standard_Boolean | myClear |
Implementation of raw OCC memory manager which uses standard C functions: malloc (or calloc), free and realloc without any optimization
Standard_MMgrRaw::Standard_MMgrRaw | ( | const Standard_Boolean | aClear = Standard_False | ) |
virtual Standard_Address Standard_MMgrRaw::Allocate | ( | const Standard_Size | aSize | ) | [virtual] |
Implements Standard_MMgrRoot.
virtual void Standard_MMgrRaw::Free | ( | Standard_Address & | ) | [virtual] |
Implements Standard_MMgrRoot.
virtual Standard_Address Standard_MMgrRaw::Reallocate | ( | Standard_Address & | aPtr, |
const Standard_Size | aSize | ||
) | [virtual] |
Implements Standard_MMgrRoot.
Standard_Boolean Standard_MMgrRaw::myClear [protected] |