Wiselib
Classes | Public Types | Public Member Functions
wiselib::NewDeleteAllocator< OsModel_P > Class Template Reference

Simple new/delete allocator. More...

#include <new_delete_allocator.h>

List of all members.

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_typeself_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)

Detailed Description

template<typename OsModel_P>
class wiselib::NewDeleteAllocator< OsModel_P >

Simple new/delete allocator.

Uses the new/delete operators from the underlying OS.


Member Typedef Documentation

template<typename OsModel_P >
typedef OsModel_P wiselib::NewDeleteAllocator< OsModel_P >::OsModel
template<typename OsModel_P >
typedef self_type* wiselib::NewDeleteAllocator< OsModel_P >::self_pointer_t
template<typename OsModel_P >
typedef NewDeleteAllocator<OsModel_P> wiselib::NewDeleteAllocator< OsModel_P >::self_type

Member Enumeration Documentation

template<typename OsModel_P >
anonymous enum
Enumerator:
SUCCESS 
ERR_UNSPEC 

Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::NewDeleteAllocator< OsModel_P >::NewDeleteAllocator ( ) [inline]

Member Function Documentation

template<typename OsModel_P >
template<typename T >
Ref<T>::pointer_t wiselib::NewDeleteAllocator< OsModel_P >::allocate ( ) [inline]
template<typename OsModel_P >
template<typename T >
Ref<T>::pointer_t wiselib::NewDeleteAllocator< OsModel_P >::allocate_array ( typename OsModel::size_t  n) [inline]
template<typename OsModel_P >
template<typename T >
int wiselib::NewDeleteAllocator< OsModel_P >::free ( typename Ref< T >::pointer_t  p) [inline]
template<typename OsModel_P >
template<typename T >
int wiselib::NewDeleteAllocator< OsModel_P >::free_array ( typename Ref< T >::pointer_t  p) [inline]
template<typename OsModel_P >
template<typename Debug_P >
void wiselib::NewDeleteAllocator< OsModel_P >::print_stats ( Debug_P *  d) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines