Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | List of all members
honey::MemPoolAllocator< Subclass, T > Class Template Reference

MemPool allocator. More...

#include <Pool.h>

Inheritance diagram for honey::MemPoolAllocator< Subclass, T >:
Inheritance graph
[legend]
Collaboration diagram for honey::MemPoolAllocator< Subclass, T >:
Collaboration graph
[legend]

Public Types

typedef T * pointer
 
typedef szt size_type
 
- Public Types inherited from honey::Allocator< Subclass, 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
 

Public Member Functions

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< Subclass, T >
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
size_type max_size () const
 
template<class U , class... Args>
void construct (U *p, Args &&...args)
 
template<class U >
void destroy (U *p)
 
bool operator== (const Subclass< T > &) const
 
bool operator!= (const Subclass< T > &) const
 

Additional Inherited Members

- Protected Member Functions inherited from honey::Allocator< Subclass, T >
Subclass< T > & subc ()
 
const Subclass< T > & subc () const
 

Detailed Description

template<template< class > class Subclass, class T>
class honey::MemPoolAllocator< Subclass, T >

MemPool allocator.

Subclass must define:

Member Typedef Documentation

template<template< class > class Subclass, class T>
typedef T* honey::Allocator< Subclass, T >::pointer
template<template< class > class Subclass, class T>
typedef szt honey::Allocator< Subclass, T >::size_type

Member Function Documentation

template<template< class > class Subclass, class T>
pointer honey::MemPoolAllocator< Subclass, T >::allocate ( size_type  n,
const void *  = 0 
)
inline
template<template< class > class Subclass, class T>
pointer honey::MemPoolAllocator< Subclass, T >::allocate ( size_type  n,
const char *  srcFile,
int  srcLine,
const void *  = 0 
)
inline
template<template< class > class Subclass, class T>
void honey::MemPoolAllocator< Subclass, T >::deallocate ( pointer  p,
size_type   
)
inline

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