|
Simple Application Framework
1
|
Low level memory handling functions. More...
Classes | |
| class | SharedPtr |
| Shared pointer class with reference counting. More... | |
Functions | |
| void * | AllocateSafMemory (Size n, const Saf::SourceLocation &loc) |
Generic type-free malloc() encapsulation. | |
| template<class T > | |
| void | Delete (T *&p) |
Generic delete encapsulation. | |
| template<class T > | |
| void | Delete (T *&p, Size n) |
Generic delete [] encapsulation. | |
| template<class T > | |
| void | OperatorDelete (T *&p) |
| Operator delete. | |
| template<class T > | |
| void | OperatorDelete (T *&p, Size n) |
| Operator delete for arrays. | |
| template<class T > | |
| void | OperatorNew (T *&p, const Saf::SourceLocation &loc) |
| Operator new. | |
| template<class T > | |
| void | OperatorNew (T *&p, Size n, const Saf::SourceLocation &loc) |
| Operator new for arrays. | |
Low level memory handling functions.
| void * Saf::Mem::AllocateSafMemory | ( | Size | n, |
| const Saf::SourceLocation & | loc | ||
| ) |
Generic type-free malloc() encapsulation.
Basic memory allocation routine, this function is called by all the remaining
memory allocation functions (including operator new). Do not use directly.| void Saf::Mem::Delete | ( | T *& | p | ) |
Generic delete encapsulation.
| void Saf::Mem::Delete | ( | T *& | p, |
| Size | n | ||
| ) |
Generic delete [] encapsulation.
| void Saf::Mem::OperatorDelete | ( | T *& | p | ) |
Operator delete.
| void Saf::Mem::OperatorDelete | ( | T *& | p, |
| Size | n | ||
| ) |
Operator delete for arrays.
| void Saf::Mem::OperatorNew | ( | T *& | p, |
| const Saf::SourceLocation & | loc | ||
| ) |
Operator new.
| void Saf::Mem::OperatorNew | ( | T *& | p, |
| Size | n, | ||
| const Saf::SourceLocation & | loc | ||
| ) |
Operator new for arrays.
1.8.0