Wiselib
|
Simple new/delete allocator. More...
#include <new_delete_allocator.h>
Classes | |
struct | Ref |
Public Types | |
enum | { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC } |
typedef OsModel_P | OsModel |
typedef NewDeleteAllocator < OsModel_P > | self_type |
typedef self_type * | self_pointer_t |
Public Member Functions | |
NewDeleteAllocator () | |
template<typename T > | |
Ref< T >::pointer_t | allocate () |
template<typename T > | |
Ref< T >::pointer_t | allocate_array (typename OsModel::size_t n) |
template<typename T > | |
int | free (typename Ref< T >::pointer_t p) |
template<typename T > | |
int | free_array (typename Ref< T >::pointer_t p) |
template<typename Debug_P > | |
void | print_stats (Debug_P *d) |
Simple new/delete allocator.
Uses the new/delete operators from the underlying OS.
typedef OsModel_P wiselib::NewDeleteAllocator< OsModel_P >::OsModel |
typedef self_type* wiselib::NewDeleteAllocator< OsModel_P >::self_pointer_t |
typedef NewDeleteAllocator<OsModel_P> wiselib::NewDeleteAllocator< OsModel_P >::self_type |
wiselib::NewDeleteAllocator< OsModel_P >::NewDeleteAllocator | ( | ) | [inline] |
Ref<T>::pointer_t wiselib::NewDeleteAllocator< OsModel_P >::allocate | ( | ) | [inline] |
Ref<T>::pointer_t wiselib::NewDeleteAllocator< OsModel_P >::allocate_array | ( | typename OsModel::size_t | n | ) | [inline] |
int wiselib::NewDeleteAllocator< OsModel_P >::free | ( | typename Ref< T >::pointer_t | p | ) | [inline] |
int wiselib::NewDeleteAllocator< OsModel_P >::free_array | ( | typename Ref< T >::pointer_t | p | ) | [inline] |
void wiselib::NewDeleteAllocator< OsModel_P >::print_stats | ( | Debug_P * | d | ) | [inline] |