Very simple allocator implementation, containers using it can be used across dll boundaries. More...
#include <irrAllocator.h>
Public Member Functions | |
virtual | ~irrAllocator () |
Destructor. | |
T * | allocate (size_t cnt) |
Allocate memory for an array of objects. | |
void | construct (T *ptr, const T &e) |
Construct an element. | |
void | deallocate (T *ptr) |
Deallocate memory for an array of objects. | |
void | destruct (T *ptr) |
Destruct an element. | |
Protected Member Functions | |
virtual void | internal_delete (void *ptr) |
virtual void * | internal_new (size_t cnt) |
Very simple allocator implementation, containers using it can be used across dll boundaries.
Definition at line 25 of file irrAllocator.h.
|
inlinevirtual |
Destructor.
Definition at line 30 of file irrAllocator.h.
Allocate memory for an array of objects.
Definition at line 33 of file irrAllocator.h.
References irr::core::irrAllocator< T >::internal_new().
Referenced by irr::core::list< T >::insert_after(), irr::core::list< T >::insert_before(), irr::core::list< T >::push_back(), and irr::core::list< T >::push_front().
Construct an element.
Definition at line 45 of file irrAllocator.h.
Referenced by irr::core::list< T >::insert_after(), irr::core::list< T >::insert_before(), irr::core::list< T >::push_back(), and irr::core::list< T >::push_front().
Deallocate memory for an array of objects.
Definition at line 39 of file irrAllocator.h.
References irr::core::irrAllocator< T >::internal_delete().
Referenced by irr::core::list< T >::clear(), and irr::core::list< T >::erase().
Destruct an element.
Definition at line 51 of file irrAllocator.h.
Referenced by irr::core::list< T >::clear(), and irr::core::list< T >::erase().
|
inlineprotectedvirtual |
Definition at line 63 of file irrAllocator.h.
Referenced by irr::core::irrAllocator< T >::deallocate().
|
inlineprotectedvirtual |
Definition at line 58 of file irrAllocator.h.
Referenced by irr::core::irrAllocator< T >::allocate().