Classes | Public Types | Public Member Functions | Private Attributes
megatree::StdSingletonAllocator< T > Class Template Reference

#include <std_singleton_allocator.h>

List of all members.

Classes

struct  rebind

Public Types

typedef const T * const_pointer
typedef const T & const_reference
typedef ptrdiff_t difference_type
typedef T * pointer
typedef T & reference
typedef size_t size_type
typedef T value_type

Public Member Functions

const_pointer addres (const_reference v) const
pointer address (reference v) const
pointer allocate (size_type n)
void construct (pointer p, const_reference v) const
void deallocate (pointer obj, size_type n)
void destroy (pointer p) const
size_t max_size () const
 StdSingletonAllocator ()
 StdSingletonAllocator (const StdSingletonAllocator< T > &a)
template<class U >
 StdSingletonAllocator (const StdSingletonAllocator< U > &)
 ~StdSingletonAllocator ()

Private Attributes

StdSingletonAllocatorInstance
< T > * 
allocator_

Detailed Description

template<class T>
class megatree::StdSingletonAllocator< T >

Definition at line 90 of file std_singleton_allocator.h.


Member Typedef Documentation

template<class T>
typedef const T* megatree::StdSingletonAllocator< T >::const_pointer

Definition at line 98 of file std_singleton_allocator.h.

template<class T>
typedef const T& megatree::StdSingletonAllocator< T >::const_reference

Definition at line 100 of file std_singleton_allocator.h.

template<class T>
typedef ptrdiff_t megatree::StdSingletonAllocator< T >::difference_type

Definition at line 96 of file std_singleton_allocator.h.

template<class T>
typedef T* megatree::StdSingletonAllocator< T >::pointer

Definition at line 97 of file std_singleton_allocator.h.

template<class T>
typedef T& megatree::StdSingletonAllocator< T >::reference

Definition at line 99 of file std_singleton_allocator.h.

template<class T>
typedef size_t megatree::StdSingletonAllocator< T >::size_type

Definition at line 95 of file std_singleton_allocator.h.

template<class T>
typedef T megatree::StdSingletonAllocator< T >::value_type

Definition at line 101 of file std_singleton_allocator.h.


Constructor & Destructor Documentation

template<class T>
megatree::StdSingletonAllocator< T >::StdSingletonAllocator ( ) [inline]

Definition at line 105 of file std_singleton_allocator.h.

template<class T>
megatree::StdSingletonAllocator< T >::StdSingletonAllocator ( const StdSingletonAllocator< T > &  a) [inline]

Definition at line 108 of file std_singleton_allocator.h.

template<class T>
template<class U >
megatree::StdSingletonAllocator< T >::StdSingletonAllocator ( const StdSingletonAllocator< U > &  ) [inline]

Definition at line 114 of file std_singleton_allocator.h.

template<class T>
megatree::StdSingletonAllocator< T >::~StdSingletonAllocator ( ) [inline]

Definition at line 120 of file std_singleton_allocator.h.


Member Function Documentation

template<class T>
const_pointer megatree::StdSingletonAllocator< T >::addres ( const_reference  v) const [inline]

Definition at line 129 of file std_singleton_allocator.h.

template<class T>
pointer megatree::StdSingletonAllocator< T >::address ( reference  v) const [inline]

Definition at line 123 of file std_singleton_allocator.h.

template<class T>
pointer megatree::StdSingletonAllocator< T >::allocate ( size_type  n) [inline]

Definition at line 142 of file std_singleton_allocator.h.

template<class T>
void megatree::StdSingletonAllocator< T >::construct ( pointer  p,
const_reference  v 
) const [inline]

Definition at line 154 of file std_singleton_allocator.h.

template<class T>
void megatree::StdSingletonAllocator< T >::deallocate ( pointer  obj,
size_type  n 
) [inline]

Definition at line 148 of file std_singleton_allocator.h.

template<class T>
void megatree::StdSingletonAllocator< T >::destroy ( pointer  p) const [inline]

Definition at line 160 of file std_singleton_allocator.h.

template<class T>
size_t megatree::StdSingletonAllocator< T >::max_size ( ) const [inline]

Definition at line 135 of file std_singleton_allocator.h.


Member Data Documentation

Definition at line 167 of file std_singleton_allocator.h.


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


megatree_core
Author(s): Stuart Glaser
autogenerated on Thu Nov 28 2013 11:30:23