StdAllocator< void, BaseAllocator > Class Template Reference

StdAllocator&lt; void, BaseAllocator &gt; Class Template Reference#

Composable Kernel: StdAllocator< void, BaseAllocator > Class Template Reference

#include <allocators.h>

Inheritance diagram for StdAllocator< void, BaseAllocator >:

Classes

struct  rebind

Public Types

typedef BaseAllocator BaseAllocatorType
typedef allocator_type::value_type value_type
typedef traits_type::size_type size_type
typedef traits_type::difference_type difference_type
typedef traits_type::pointer pointer
typedef traits_type::const_pointer const_pointer
typedef allocator_type::reference reference
typedef allocator_type::const_reference const_reference

Public Member Functions

 StdAllocator () RAPIDJSON_NOEXCEPT
 StdAllocator (const StdAllocator &rhs) RAPIDJSON_NOEXCEPT
template<typename U>
 StdAllocator (const StdAllocator< U, BaseAllocator > &rhs) RAPIDJSON_NOEXCEPT
 StdAllocator (const BaseAllocator &baseAllocator) RAPIDJSON_NOEXCEPT
 ~StdAllocator () RAPIDJSON_NOEXCEPT
pointer address (reference r) const RAPIDJSON_NOEXCEPT
size_type max_size () const RAPIDJSON_NOEXCEPT
void construct (pointer p, const_reference r)
void destroy (pointer p)
U * allocate (size_type n=1, const void *=0)
void deallocate (U *p, size_type n=1)
bool operator== (const StdAllocator< U, BaseAllocator > &rhs) const RAPIDJSON_NOEXCEPT
bool operator!= (const StdAllocator< U, BaseAllocator > &rhs) const RAPIDJSON_NOEXCEPT
void * Malloc (size_t size)
void * Realloc (void *originalPtr, size_t originalSize, size_t newSize)

Static Public Member Functions

static void Free (void *ptr) RAPIDJSON_NOEXCEPT

Static Public Attributes

static const bool kNeedFree
 rapidjson Allocator concept
static const bool kRefCounted

Friends

template<typename, typename>
class StdAllocator

Member Typedef Documentation

◆ BaseAllocatorType

template<typename BaseAllocator>
typedef BaseAllocator StdAllocator< void, BaseAllocator >::BaseAllocatorType

◆ const_pointer

typedef traits_type::const_pointer StdAllocator< void, BaseAllocator >::const_pointer

◆ const_reference

typedef allocator_type::const_reference StdAllocator< void, BaseAllocator >::const_reference

◆ difference_type

typedef traits_type::difference_type StdAllocator< void, BaseAllocator >::difference_type

◆ pointer

typedef traits_type::pointer StdAllocator< void, BaseAllocator >::pointer

◆ reference

typedef allocator_type::reference StdAllocator< void, BaseAllocator >::reference

◆ size_type

typedef traits_type::size_type StdAllocator< void, BaseAllocator >::size_type

◆ value_type

template<typename BaseAllocator>
typedef allocator_type::value_type StdAllocator< void, BaseAllocator >::value_type

Constructor & Destructor Documentation

◆ StdAllocator() [1/4]

template<typename BaseAllocator>
StdAllocator< void, BaseAllocator >::StdAllocator ( )
inline

◆ StdAllocator() [2/4]

template<typename BaseAllocator>
StdAllocator< void, BaseAllocator >::StdAllocator ( const StdAllocator< void, BaseAllocator > & rhs)
inline

◆ StdAllocator() [3/4]

template<typename BaseAllocator>
template<typename U>
StdAllocator< void, BaseAllocator >::StdAllocator ( const StdAllocator< U, BaseAllocator > & rhs)
inline

◆ StdAllocator() [4/4]

template<typename BaseAllocator>
StdAllocator< void, BaseAllocator >::StdAllocator ( const BaseAllocator & baseAllocator)
inline

◆ ~StdAllocator()

template<typename BaseAllocator>
StdAllocator< void, BaseAllocator >::~StdAllocator ( )
inline

Member Function Documentation

◆ address()

pointer StdAllocator< void, BaseAllocator >::address ( reference r) const
inline

◆ allocate()

U * StdAllocator< void, BaseAllocator >::allocate ( size_type n = 1,
const void * = 0 )
inline

◆ construct()

void StdAllocator< void, BaseAllocator >::construct ( pointer p,
const_reference r )
inline

◆ deallocate()

void StdAllocator< void, BaseAllocator >::deallocate ( U * p,
size_type n = 1 )
inline

◆ destroy()

void StdAllocator< void, BaseAllocator >::destroy ( pointer p)
inline

◆ Free()

void StdAllocator< void, BaseAllocator >::Free ( void * ptr)
inlinestatic

◆ Malloc()

void * StdAllocator< void, BaseAllocator >::Malloc ( size_t size)
inline

◆ max_size()

size_type StdAllocator< void, BaseAllocator >::max_size ( ) const
inline

◆ operator!=()

bool StdAllocator< void, BaseAllocator >::operator!= ( const StdAllocator< U, BaseAllocator > & rhs) const
inline

◆ operator==()

bool StdAllocator< void, BaseAllocator >::operator== ( const StdAllocator< U, BaseAllocator > & rhs) const
inline

◆ Realloc()

void * StdAllocator< void, BaseAllocator >::Realloc ( void * originalPtr,
size_t originalSize,
size_t newSize )
inline

◆ StdAllocator

template<typename BaseAllocator>
template<typename, typename>
friend class StdAllocator
friend

Member Data Documentation

◆ kNeedFree

const bool StdAllocator< void, BaseAllocator >::kNeedFree
static

rapidjson Allocator concept

◆ kRefCounted

const bool StdAllocator< void, BaseAllocator >::kRefCounted
static

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