template class Core::PoolAllocator

Overview

Pool-based allocator. More…

#include <corepoolallocator.h>

template <
    typename T,
    uint32 numBlocks,
    uint32 blockSize = 1,
    uint32 alignment = 1
>
class PoolAllocator: public Core::PoolAllocatorExtern
{
};

Inherited Members

public:
    // methods

    static Allocator& getDefault ();
    virtual void* allocate (uint32 size) = 0;
    virtual void* reallocate (void* address, uint32 size) = 0;
    virtual void deallocate (void* address) = 0;
    bool isValidAddress (const T* address) const;
    virtual void* allocate (uint32 size);
    virtual void* reallocate (void* address, uint32 size);
    virtual void deallocate (void* address);

Detailed Documentation

Pool-based allocator.

Not thread safe!