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

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

#include <allocation_policy.h>

Inheritance diagram for roc::core::ArenaAllocation:

Public Member Functions

 ArenaAllocation (IArena &arena)
 Initialize. More...
 
template<class T >
void destroy (T &object)
 Destroy object and return memory to arena. More...
 

Protected Member Functions

IArenaarena () const
 Get arena. More...
 

Detailed Description

Allocation policy for objects allocated using IArena.

Definition at line 23 of file allocation_policy.h.

Constructor & Destructor Documentation

◆ ArenaAllocation()

roc::core::ArenaAllocation::ArenaAllocation ( IArena arena)
inline

Initialize.

Definition at line 26 of file allocation_policy.h.

Member Function Documentation

◆ arena()

IArena& roc::core::ArenaAllocation::arena ( ) const
inlineprotected

Get arena.

Definition at line 37 of file allocation_policy.h.

◆ destroy()

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

Destroy object and return memory to arena.

Definition at line 31 of file allocation_policy.h.


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