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

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

#include <roc_core/allocation_policy.h>

Inheritance diagram for roc::core::ArenaAllocation:

Public Member Functions

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

Protected Member Functions

IArena & arena () const
 Get arena.
 

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: