Open CASCADE Technology 6.6.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.
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

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 ( const Standard_Boolean  aClear = Standard_False)

Member Function Documentation

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.


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines