Honeycomb  0.1
Component-Model Framework
Public Member Functions | Static Public Member Functions | List of all members
honey::SmallAllocator< T > Class Template Reference

Global allocator for small memory blocks. To provide a custom pool define SmallAllocator_createSingleton_ and implement SmallAllocator_createSingleton(). More...

#include <SmallAllocator.h>

Inheritance diagram for honey::SmallAllocator< T >:
Inheritance graph
[legend]
Collaboration diagram for honey::SmallAllocator< T >:
Collaboration graph
[legend]

Public Member Functions

 SmallAllocator ()=default
 
template<class U >
 SmallAllocator (const SmallAllocator< U > &)
 
- Public Member Functions inherited from honey::MemPoolAllocator< SmallAllocator, T >
pointer allocate (size_type n, const void *=0)
 
pointer allocate (size_type n, const char *srcFile, int srcLine, const void *=0)
 
void deallocate (pointer p, size_type)
 
- Public Member Functions inherited from honey::Allocator< SmallAllocator, T >
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
size_type max_size () const
 
void construct (U *p, Args &&...args)
 
void destroy (U *p)
 
bool operator== (const SmallAllocator< T > &) const
 
bool operator!= (const SmallAllocator< T > &) const
 

Static Public Member Functions

static MemPoolpool ()
 

Additional Inherited Members

- Public Types inherited from honey::MemPoolAllocator< SmallAllocator, T >
typedef T * pointer
 
typedef szt size_type
 
- Public Types inherited from honey::Allocator< SmallAllocator, T >
typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 
typedef const T * const_pointer
 
typedef const T & const_reference
 
typedef szt size_type
 
typedef sdt difference_type
 
- Protected Member Functions inherited from honey::Allocator< SmallAllocator, T >
SmallAllocator< T > & subc ()
 
const SmallAllocator< T > & subc () const
 

Detailed Description

template<class T>
class honey::SmallAllocator< T >

Global allocator for small memory blocks. To provide a custom pool define SmallAllocator_createSingleton_ and implement SmallAllocator_createSingleton().

Constructor & Destructor Documentation

template<class T>
honey::SmallAllocator< T >::SmallAllocator ( )
default
template<class T>
template<class U >
honey::SmallAllocator< T >::SmallAllocator ( const SmallAllocator< U > &  )
inline

Member Function Documentation

template<class T>
static MemPool& honey::SmallAllocator< T >::pool ( )
inlinestatic

The documentation for this class was generated from the following file: