Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::core::PoolAllocation Class Reference

Allocation policy for objects allocated using IPool. More...

#include <roc_core/allocation_policy.h>

Inheritance diagram for roc::core::PoolAllocation:

Public Member Functions

 PoolAllocation (IPool &pool)
 Initialize.
 
template<class T >
void destroy (T &object)
 Destroy object and return memory to pool.
 

Protected Member Functions

IPool & pool () const
 Get pool.
 

Detailed Description

Allocation policy for objects allocated using IPool.

Definition at line 46 of file allocation_policy.h.

Constructor & Destructor Documentation

◆ PoolAllocation()

roc::core::PoolAllocation::PoolAllocation ( IPool &  pool)
inline

Initialize.

Definition at line 49 of file allocation_policy.h.

Member Function Documentation

◆ destroy()

template<class T >
void roc::core::PoolAllocation::destroy ( T &  object)
inline

Destroy object and return memory to pool.

Definition at line 54 of file allocation_policy.h.

◆ pool()

IPool & roc::core::PoolAllocation::pool ( ) const
inlineprotected

Get pool.

Definition at line 60 of file allocation_policy.h.


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