Base class for small objects to be used in the small object allocation scheme.
More...
|
static void | operator delete (void *p, std::size_t size) throw () |
|
static void | operator delete (void *p, const std::nothrow_t &) throw () |
|
static void | operator delete (void *p, void *place) |
|
static void | operator delete[] (void *p, std::size_t size) throw () |
|
static void | operator delete[] (void *p, const std::nothrow_t &) throw () |
|
static void | operator delete[] (void *p, void *place) |
|
static void * | operator new (std::size_t size) throw ( std::bad_alloc ) |
|
static void * | operator new (std::size_t size, const std::nothrow_t &) throw () |
|
static void * | operator new (std::size_t size, void *place) |
|
static void * | operator new[] (std::size_t size) throw ( std::bad_alloc ) |
|
static void * | operator new[] (std::size_t size, const std::nothrow_t &) throw () |
|
static void * | operator new[] (std::size_t size, void *place) |
|
template<template< class, class > class ThreadPolicy, std::size_t chunkSize, std::size_t maxSmallObjectSize, std::size_t objectAlignSize, template< class > class LifetimePolicy, class MutexPolicy>
class Protium::Allocation::SmallObjectBase< ThreadPolicy, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy, MutexPolicy >
Base class for small objects to be used in the small object allocation scheme.
- Parameters
-
ThreadPolicy | Include threading policy here from ThreadingPolicy.h |
chunkSize | defines the size of chunks |
maxSmallObjectSize | objects exceeding this size will default to standard alloction (new or malloc) |
objectAlignSize | used by allocator for default object alignment |
LifetimePolicy | Determines the lifetime of the allocator singleton from DeletionPolicies.h |
MutexPolicy | Determines the mutex type to be used. (see Mutex.h) |
Use as a base class for small objects in order to utilize the SmallObjectAllocator.
Definition at line 31 of file SmallObject.h.
template<template< class, class > class ThreadPolicy, std::size_t chunkSize, std::size_t maxSmallObjectSize, std::size_t objectAlignSize, template< class > class LifetimePolicy, class MutexPolicy>
Type of allocator to host the allocator singleton.
Definition at line 35 of file SmallObject.h.