Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Defines | Functions
Saf/Mem/Alloc.h File Reference

Low level memory handling functions.
More...

#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.

Detailed Description

Low level memory handling functions.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2010

Define Documentation

#define nullptr   0
#define SAF_NEW   new (SAF_SOURCE_LOCATION)

Function Documentation

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 
)