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

Inheritance diagram for roc::core::ArenaAllocation:
roc::core::RefCounted< IResampler, core::ArenaAllocation > roc::core::RefCounted< BasicControlEndpoint, core::ArenaAllocation > roc::core::RefCounted< BasicPort, core::ArenaAllocation > roc::core::RefCounted< ReceiverEndpoint, core::ArenaAllocation > roc::core::RefCounted< ReceiverSession, core::ArenaAllocation > roc::core::RefCounted< ReceiverSlot, core::ArenaAllocation > roc::core::RefCounted< SenderSlot, core::ArenaAllocation > roc::core::RefCounted< MediaDescription, 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: