QDP++
QDP::Allocator::QDPPoolAllocator Class Reference

#include <qdp_pool_allocator.h>

Public Member Functions

void init (size_t PoolSizeInMB)
void * allocate (size_t n_bytes, const MemoryPoolHint &mem_pool_hint)
void free (void *mem)
void pushFunc (const char *func, int line)
void popFunc (void)
void dump ()

Friends

class QDP::CreateUsingNew< QDP::Allocator::QDPPoolAllocator >
class QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >

Detailed Description

Definition at line 36 of file qdp_pool_allocator.h.

Member Function Documentation

◆ allocate()

void * QDP::Allocator::QDPPoolAllocator::allocate ( size_t n_bytes,
const MemoryPoolHint & mem_pool_hint = DEFAULT )

◆ dump()

◆ free()

void QDP::Allocator::QDPPoolAllocator::free ( void * mem)

◆ init()

void QDP::Allocator::QDPPoolAllocator::init ( size_t PoolSizeInMB)

◆ popFunc()

void QDP::Allocator::QDPPoolAllocator::popFunc ( void )

Definition at line 126 of file qdp_pool_allocator.cc.

References popFunc().

Referenced by popFunc(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.

◆ pushFunc()

void QDP::Allocator::QDPPoolAllocator::pushFunc ( const char * func,
int line )

Definition at line 125 of file qdp_pool_allocator.cc.

References pushFunc().

Referenced by pushFunc(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.

◆ QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >

Definition at line 49 of file qdp_pool_allocator.h.

References allocate(), dump(), free(), init(), popFunc(), and pushFunc().

◆ QDP::CreateUsingNew< QDP::Allocator::QDPPoolAllocator >

Definition at line 49 of file qdp_pool_allocator.h.


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