TBCI Numerical high perf. C++ Library 2.8.0
tbci_memalloc< T > Class Template Reference

#include <malloc_cache.h>

Static Public Member Functions

static Talloc (const unsigned long sz)
static void dealloc (const T *const ptr, const unsigned long sz)

Protected Member Functions

 tbci_memalloc ()
 ~tbci_memalloc ()

Friends

tbci_memalloc< T > &tbci_s_allocator FGDT ()

Detailed Description

template<typename T>
class tbci_memalloc< T >

Default memory allocator class, basically just wraps new and delete[] To be specialized later for better performance.

Definition at line 101 of file malloc_cache.h.

Constructor & Destructor Documentation

◆ tbci_memalloc()

template<typename T>
tbci_memalloc< T >::tbci_memalloc ( )
inlineprotected

Definition at line 105 of file malloc_cache.h.

Referenced by FGDT.

◆ ~tbci_memalloc()

template<typename T>
tbci_memalloc< T >::~tbci_memalloc ( )
inlineprotected

Definition at line 106 of file malloc_cache.h.

Member Function Documentation

◆ alloc()

template<typename T>
T * tbci_memalloc< T >::alloc ( const unsigned long sz)
inlinestatic

Definition at line 109 of file malloc_cache.h.

References T.

◆ dealloc()

template<typename T>
void tbci_memalloc< T >::dealloc ( const T *const ptr,
const unsigned long sz )
inlinestatic

Definition at line 111 of file malloc_cache.h.

References T.

◆ FGDT

template<typename T>
tbci_memalloc< T > &tbci_s_allocator FGDT ( )
friend

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