Open CASCADE Technology  7.5.0
Public Member Functions | Protected Attributes

Standard_MMgrRaw Class Reference

#include <Standard_MMgrRaw.hxx>

Inheritance diagram for Standard_MMgrRaw:
Inheritance graph
[legend]

Public Member Functions

 Standard_MMgrRaw (const Standard_Boolean aClear=Standard_False)
 Constructor; if aClear is True, the memory will be nullified upon allocation. More...
 
virtual Standard_Address Allocate (const Standard_Size aSize)
 Allocate aSize bytes. More...
 
virtual Standard_Address Reallocate (Standard_Address thePtr, const Standard_Size theSize)
 Reallocate aPtr to the size aSize. The new pointer is returned. More...
 
virtual void Free (Standard_Address thePtr)
 Free allocated memory. The pointer is nullified. More...
 
- Public Member Functions inherited from Standard_MMgrRoot
virtual ~Standard_MMgrRoot ()
 Virtual destructor; required for correct inheritance. More...
 
virtual Standard_Integer Purge (Standard_Boolean isDestroyed=Standard_False)
 Purge internally cached unused memory blocks (if any) by releasing them to the operating system. Must return non-zero if some memory has been actually released, or zero otherwise. More...
 

Protected Attributes

Standard_Boolean myClear
 

Detailed Description

Implementation of raw OCC memory manager which uses standard C functions: malloc (or calloc), free and realloc without any optimization

Constructor & Destructor Documentation

◆ Standard_MMgrRaw()

Standard_MMgrRaw::Standard_MMgrRaw ( const Standard_Boolean  aClear = Standard_False)

Constructor; if aClear is True, the memory will be nullified upon allocation.

Member Function Documentation

◆ Allocate()

virtual Standard_Address Standard_MMgrRaw::Allocate ( const Standard_Size  aSize)
virtual

Allocate aSize bytes.

Implements Standard_MMgrRoot.

◆ Free()

virtual void Standard_MMgrRaw::Free ( Standard_Address  thePtr)
virtual

Free allocated memory. The pointer is nullified.

Implements Standard_MMgrRoot.

◆ Reallocate()

virtual Standard_Address Standard_MMgrRaw::Reallocate ( Standard_Address  thePtr,
const Standard_Size  theSize 
)
virtual

Reallocate aPtr to the size aSize. The new pointer is returned.

Implements Standard_MMgrRoot.

Field Documentation

◆ myClear

Standard_Boolean Standard_MMgrRaw::myClear
protected

The documentation for this class was generated from the following file: