Simple Application Framework
1
|
Low level memory handling functions.
#include <new>
#include <stdlib.h>
#include "../Core.h"
#include "../Type.h"
#include "../SourceLocation.h"
Go to the source code of this file.
Namespaces | |
namespace | Saf |
Global library namespace. | |
namespace | Saf::Mem |
Low level memory handling functions. | |
Defines | |
#define | nullptr 0 |
#define | SAF_NEW new (SAF_SOURCE_LOCATION) |
Functions | |
template<class T > | |
void | Saf::Mem::Delete (T *&p) |
Generic delete encapsulation. | |
template<class T > | |
void | Saf::Mem::Delete (T *&p, Size n) |
Generic delete [] encapsulation. | |
SAF_DLL_EXPORT void | operator delete (void *ptr, const Saf::SourceLocation &loc) |
SAF_DLL_EXPORT void | operator delete[] (void *ptr, const Saf::SourceLocation &loc) |
SAF_DLL_EXPORT void * | operator new (size_t nSize, const Saf::SourceLocation &loc) |
SAF_DLL_EXPORT void * | operator new[] (size_t nSize, const Saf::SourceLocation &loc) |
template<class T > | |
void | Saf::Mem::OperatorDelete (T *&p) |
Operator delete. | |
template<class T > | |
void | Saf::Mem::OperatorDelete (T *&p, Size n) |
Operator delete for arrays. | |
template<class T > | |
void | Saf::Mem::OperatorNew (T *&p, const Saf::SourceLocation &loc) |
Operator new. | |
template<class T > | |
void | Saf::Mem::OperatorNew (T *&p, Size n, const Saf::SourceLocation &loc) |
Operator new for arrays. |
Low level memory handling functions.
#define nullptr 0 |
#define SAF_NEW new (SAF_SOURCE_LOCATION) |
SAF_DLL_EXPORT void operator delete | ( | void * | ptr, |
const Saf::SourceLocation & | loc | ||
) |
SAF_DLL_EXPORT void operator delete[] | ( | void * | ptr, |
const Saf::SourceLocation & | loc | ||
) |
SAF_DLL_EXPORT void* operator new | ( | size_t | nSize, |
const Saf::SourceLocation & | loc | ||
) |
SAF_DLL_EXPORT void* operator new[] | ( | size_t | nSize, |
const Saf::SourceLocation & | loc | ||
) |