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

std::allocator compatible allocator More...

#include <Allocator.h>

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

Classes

struct  rebind
 

Public Types

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

Protected Member Functions

Subclass< T > & subc ()
 
const Subclass< T > & subc () const
 

Detailed Description

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

std::allocator compatible allocator

Subclass must define:

Member Typedef Documentation

template<template< class > class Subclass, class T>
typedef const T* honey::Allocator< Subclass, T >::const_pointer
template<template< class > class Subclass, class T>
typedef const T& honey::Allocator< Subclass, T >::const_reference
template<template< class > class Subclass, class T>
typedef sdt honey::Allocator< Subclass, T >::difference_type
template<template< class > class Subclass, class T>
typedef T* honey::Allocator< Subclass, T >::pointer
template<template< class > class Subclass, class T>
typedef T& honey::Allocator< Subclass, T >::reference
template<template< class > class Subclass, class T>
typedef szt honey::Allocator< Subclass, T >::size_type
template<template< class > class Subclass, class T>
typedef T honey::Allocator< Subclass, T >::value_type

Member Function Documentation

template<template< class > class Subclass, class T>
pointer honey::Allocator< Subclass, T >::address ( reference  x) const
inline
template<template< class > class Subclass, class T>
const_pointer honey::Allocator< Subclass, T >::address ( const_reference  x) const
inline
template<template< class > class Subclass, class T>
template<class U , class... Args>
void honey::Allocator< Subclass, T >::construct ( U *  p,
Args &&...  args 
)
inline
template<template< class > class Subclass, class T>
template<class U >
void honey::Allocator< Subclass, T >::destroy ( U *  p)
inline
template<template< class > class Subclass, class T>
size_type honey::Allocator< Subclass, T >::max_size ( ) const
inline
template<template< class > class Subclass, class T>
bool honey::Allocator< Subclass, T >::operator!= ( const Subclass< T > &  ) const
inline
template<template< class > class Subclass, class T>
bool honey::Allocator< Subclass, T >::operator== ( const Subclass< T > &  ) const
inline
template<template< class > class Subclass, class T>
Subclass<T>& honey::Allocator< Subclass, T >::subc ( )
inlineprotected
template<template< class > class Subclass, class T>
const Subclass<T>& honey::Allocator< Subclass, T >::subc ( ) const
inlineprotected

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