![]() |
Protium
Math and Design Features
|
Singleton small object allocator. More...
#include <SmallObjectAllocator.h>

Public Types | |
| typedef SmallObjectAllocator < ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy > | AllocatorModel |
| typedef Protium::Singleton::Singleton < AllocatorModel, Protium::Singleton::CreateStatic, LifetimePolicy, ThreadingModel > | AllocatorSingleton |
| typedef ThreadingModel < AllocatorModel, MutexPolicy > | ThreadModel |
Public Member Functions | |
| SmallObjectAllocator () | |
| ~SmallObjectAllocator (void) | |
Public Member Functions inherited from Protium::Allocation::SmallObjectAllocatorImplementation | |
| void * | Allocate (std::size_t size, bool doThrow) |
| void | Deallocate (void *p, std::size_t size) |
| void | Deallocate (void *p) |
| std::size_t | GetAlignment () const |
| std::size_t | GetMaxObjectSize () const |
| bool | IsCorrupt (void) const |
| bool | TrimExcessMemory (void) |
Static Public Member Functions | |
| static void | ClearExtraMemory (void) |
| static SmallObjectAllocator & | Instance (void) |
| static bool | IsCorrupted (void) |
Private Member Functions | |
| SmallObjectAllocator (const SmallObjectAllocator &) | |
| SmallObjectAllocator & | operator= (const SmallObjectAllocator &) |
Additional Inherited Members | |
Protected Member Functions inherited from Protium::Allocation::SmallObjectAllocatorImplementation | |
| SmallObjectAllocatorImplementation (std::size_t pageSize, std::size_t maxObjectSize, std::size_t objectAlignSize) | |
| ~SmallObjectAllocatorImplementation (void) | |
Singleton small object allocator.
Definition at line 49 of file SmallObjectAllocator.h.
| typedef SmallObjectAllocator< ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy > Protium::Allocation::SmallObjectAllocator< ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy, MutexPolicy >::AllocatorModel |
Definition at line 52 of file SmallObjectAllocator.h.
| typedef Protium::Singleton::Singleton< AllocatorModel, Protium::Singleton::CreateStatic, LifetimePolicy, ThreadingModel > Protium::Allocation::SmallObjectAllocator< ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy, MutexPolicy >::AllocatorSingleton |
Definition at line 56 of file SmallObjectAllocator.h.
| typedef ThreadingModel< AllocatorModel, MutexPolicy > Protium::Allocation::SmallObjectAllocator< ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy, MutexPolicy >::ThreadModel |
Definition at line 53 of file SmallObjectAllocator.h.
|
inline |
Definition at line 63 of file SmallObjectAllocator.h.
|
inline |
Definition at line 67 of file SmallObjectAllocator.h.
|
private |
|
inlinestatic |
Definition at line 68 of file SmallObjectAllocator.h.
|
inlinestatic |
Definition at line 58 of file SmallObjectAllocator.h.
|
inlinestatic |
Definition at line 74 of file SmallObjectAllocator.h.
|
private |