Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::PoolAllocation Class Reference

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

#include <allocation_policy.h>

Inheritance diagram for roc::core::PoolAllocation:

Public Member Functions

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

Protected Member Functions

IPoolpool () const
 Get pool. More...
 

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: