A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
STLSlabAllocator< T > Class Template Reference

#include <STLSlabAllocator.h>

+ Collaboration diagram for STLSlabAllocator< T >:

Classes

struct  rebind
 

Public Types

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

Public Member Functions

 STLSlabAllocator (size_t size)
 
 STLSlabAllocator (void *memPool, size_t size)
 
template<class U >
 STLSlabAllocator (const STLSlabAllocator< U > &other)
 
pointer allocate (size_type n, const void *=0)
 
void deallocate (pointer p, size_type n)
 
void construct (pointer p, const T &val)
 
void destroy (pointer p)
 
SlabAllocatorPtr getAllocator () const
 

Private Attributes

SlabAllocatorPtr allocator
 

Detailed Description

template<class T>
class STLSlabAllocator< T >

Definition at line 15 of file STLSlabAllocator.h.

Member Typedef Documentation

template<class T>
typedef const T* STLSlabAllocator< T >::const_pointer

Definition at line 21 of file STLSlabAllocator.h.

template<class T>
typedef const T& STLSlabAllocator< T >::const_reference

Definition at line 23 of file STLSlabAllocator.h.

template<class T>
typedef ptrdiff_t STLSlabAllocator< T >::difference_type

Definition at line 20 of file STLSlabAllocator.h.

template<class T>
typedef T* STLSlabAllocator< T >::pointer

Definition at line 18 of file STLSlabAllocator.h.

template<class T>
typedef T& STLSlabAllocator< T >::reference

Definition at line 22 of file STLSlabAllocator.h.

template<class T>
typedef size_t STLSlabAllocator< T >::size_type

Definition at line 17 of file STLSlabAllocator.h.

template<class T>
typedef T STLSlabAllocator< T >::value_type

Definition at line 19 of file STLSlabAllocator.h.

Constructor & Destructor Documentation

template<class T>
STLSlabAllocator< T >::STLSlabAllocator ( size_t  size)
inline

Definition at line 25 of file STLSlabAllocator.h.

template<class T>
STLSlabAllocator< T >::STLSlabAllocator ( void *  memPool,
size_t  size 
)
inline

Definition at line 28 of file STLSlabAllocator.h.

template<class T>
template<class U >
STLSlabAllocator< T >::STLSlabAllocator ( const STLSlabAllocator< U > &  other)
inline

Definition at line 33 of file STLSlabAllocator.h.

+ Here is the call graph for this function:

Member Function Documentation

template<class T>
pointer STLSlabAllocator< T >::allocate ( size_type  n,
const void *  = 0 
)
inline

Definition at line 40 of file STLSlabAllocator.h.

template<class T>
void STLSlabAllocator< T >::construct ( pointer  p,
const T &  val 
)
inline

Definition at line 56 of file STLSlabAllocator.h.

template<class T>
void STLSlabAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Definition at line 52 of file STLSlabAllocator.h.

template<class T>
void STLSlabAllocator< T >::destroy ( pointer  p)
inline

Definition at line 59 of file STLSlabAllocator.h.

template<class T>
SlabAllocatorPtr STLSlabAllocator< T >::getAllocator ( ) const
inline

Definition at line 62 of file STLSlabAllocator.h.

+ Here is the caller graph for this function:

Member Data Documentation

template<class T>
SlabAllocatorPtr STLSlabAllocator< T >::allocator
private

Definition at line 67 of file STLSlabAllocator.h.


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