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 <allocation_policy.h>

Inheritance diagram for roc::core::PoolAllocation:
roc::core::RefCounted< Buffer, PoolAllocation > roc::core::RefCounted< Slot, core::PoolAllocation > roc::core::RefCounted< Packet, core::PoolAllocation > roc::core::RefCounted< Route, core::PoolAllocation > roc::core::RefCounted< SourceNode, core::PoolAllocation > roc::core::RefCounted< Address, core::PoolAllocation > roc::core::RefCounted< Stream, core::PoolAllocation > roc::core::RefCounted< Node, 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: