Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
Standard_DefineAlloc.hxx File Reference

Macros

#define DEFINE_STANDARD_ALLOC_ARRAY
 
#define DEFINE_STANDARD_ALLOC_PLACEMENT
 
#define DEFINE_STANDARD_ALLOC
 
#define WORKAROUND_SUNPRO_NEW_PLACEMENT
 

Macro Definition Documentation

#define DEFINE_STANDARD_ALLOC
Value:
void* operator new (size_t theSize) \
{ \
return Standard::Allocate (theSize); \
} \
void operator delete (void* theAddress) \
{ \
Standard::Free (theAddress); \
} \
static void Free(const Standard_Address aStorage)
Deallocates memory blocks aStorage - previously allocated memory block to be freed ...
static Standard_Address Allocate(const Standard_Size aSize)
Allocates memory blocks aSize - bytes to allocate
#define DEFINE_STANDARD_ALLOC_PLACEMENT
Definition: Standard_DefineAlloc.hxx:45
#define DEFINE_STANDARD_ALLOC_ARRAY
Value:
void* operator new[] (size_t theSize) \
{ \
return Standard::Allocate (theSize); \
} \
void operator delete[] (void* theAddress) \
{ \
Standard::Free (theAddress); \
}
static void Free(const Standard_Address aStorage)
Deallocates memory blocks aStorage - previously allocated memory block to be freed ...
static Standard_Address Allocate(const Standard_Size aSize)
Allocates memory blocks aSize - bytes to allocate
#define DEFINE_STANDARD_ALLOC_PLACEMENT
Value:
void* operator new (size_t, void* theAddress) \
{ \
return theAddress; \
} \
void operator delete (void*, void*) \
{ \
}
#define WORKAROUND_SUNPRO_NEW_PLACEMENT