Diligent Engine  v.2.4.g
Public Member Functions | Static Public Member Functions | List of all members
Diligent::ObjectPool< ObjectType > Class Template Reference

#include <FixedBlockMemoryAllocator.hpp>

Public Member Functions

template<typename... CtorArgTypes>
ObjectType * NewObject (const Char *dbgDescription, const char *dbgFileName, const Int32 dbgLineNumber, CtorArgTypes &&... CtorArgs)
 
void Destroy (ObjectType *pObj)
 

Static Public Member Functions

static void SetRawAllocator (IMemoryAllocator &Allocator)
 
static void SetPageSize (Uint32 NumAllocationsInPage)
 
static ObjectPoolGetPool ()
 

Member Function Documentation

◆ Destroy()

template<typename ObjectType >
void Diligent::ObjectPool< ObjectType >::Destroy ( ObjectType *  pObj)
inline

◆ GetPool()

template<typename ObjectType >
static ObjectPool& Diligent::ObjectPool< ObjectType >::GetPool ( )
inlinestatic

◆ NewObject()

template<typename ObjectType >
template<typename... CtorArgTypes>
ObjectType* Diligent::ObjectPool< ObjectType >::NewObject ( const Char dbgDescription,
const char *  dbgFileName,
const Int32  dbgLineNumber,
CtorArgTypes &&...  CtorArgs 
)
inline

◆ SetPageSize()

template<typename ObjectType >
static void Diligent::ObjectPool< ObjectType >::SetPageSize ( Uint32  NumAllocationsInPage)
inlinestatic

◆ SetRawAllocator()

template<typename ObjectType >
static void Diligent::ObjectPool< ObjectType >::SetRawAllocator ( IMemoryAllocator Allocator)
inlinestatic

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