#include "Base/spInputOutputLog.hpp"
#include <exception>
#include <vector>
#include <list>
#include <stdarg.h>
Go to the source code of this file.
Namespaces | |
namespace | sp |
!! | |
namespace | sp::MemoryManager |
MemeoryManager namespace was particular desinged for safe memory allocation and destruction. | |
Functions | |
template<typename T > | |
void | sp::MemoryManager::deleteMemory (T *&Buffer) |
Deletes the specified memory buffer savely. This function don't. | |
template<typename T > | |
void | sp::MemoryManager::deleteBuffer (T *&Buffer) |
Deletes the specified memory buffer (array) savely. | |
template<typename T > | |
T * | sp::MemoryManager::createMemory (const io::stringc &Description="Unknown") throw (std::bad_alloc) |
Allocates a new memory buffer and prints an error message if not enough memory is available. | |
template<typename T > | |
T * | sp::MemoryManager::createBuffer (const s32 Count, const io::stringc &Description="Unknown") throw (std::bad_alloc) |
Allocates a new memory buffer (array) and prints an error message if not enough memory is available. | |
template<class T , template< class TL, class Allocator=std::allocator< TL > > class L> | |
bool | sp::MemoryManager::removeElement (L< T * > &List, T *&Object, bool DeleteMemory=false, bool UniqueObject=true) |
template<class T > | |
bool | sp::MemoryManager::removeElement (std::vector< T * > &List, T *&Object, bool DeleteMemory=false, bool UniqueObject=true) |
template<class T > | |
bool | sp::MemoryManager::removeElement (std::list< T * > &List, T *&Object, bool DeleteMemory=false, bool UniqueObject=true) |
template<class T > | |
T | sp::MemoryManager::getElement (std::list< T > &List, u32 Index) |
template<class T > | |
const T | sp::MemoryManager::getElement (const std::list< T > &List, u32 Index) |
template<class T , template< class TL, class Allocator=std::allocator< TL > > class L> | |
bool | sp::MemoryManager::hasElement (const L< T > &List, const T &Object) |
template<class T > | |
bool | sp::MemoryManager::hasElement (const std::vector< T > &List, const T &Object) |
template<class T > | |
bool | sp::MemoryManager::hasElement (const std::list< T > &List, const T &Object) |
template<class T , template< class TL, class Allocator=std::allocator< TL > > class L> | |
void | sp::MemoryManager::deleteList (L< T * > &List) |
template<class T > | |
void | sp::MemoryManager::deleteList (std::vector< T * > &List) |
template<class T > | |
void | sp::MemoryManager::deleteList (std::list< T * > &List) |