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

Node context. More...

#include <context.h>

Inheritance diagram for roc::node::Context:
roc::core::RefCounted< Context, core::ManualAllocation > roc::core::NonCopyable< RefCounted< Context, core::ManualAllocation > > roc::core::ManualAllocation

Public Member Functions

 Context (const ContextConfig &config, core::IArena &arena)
 Initialize.
 ~Context ()
 Deinitialize.
bool is_valid ()
 Check if successfully constructed.
core::IArenaarena ()
 Get arena.
core::IPoolpacket_pool ()
 Get packet pool.
core::IPoolpacket_buffer_pool ()
 Get packet buffer pool.
core::IPoolframe_buffer_pool ()
 Get frame buffer pool.
rtp::EncodingMapencoding_map ()
 Get encoding map.
netio::NetworkLoopnetwork_loop ()
 Get network event loop.
ctl::ControlLoopcontrol_loop ()
 Get control event loop.
Public Member Functions inherited from roc::core::RefCounted< Context, core::ManualAllocation >
 RefCounted ()
 Initialize.
int getref () const
 Get reference counter.
void incref () const
 Increment reference counter.
void decref () const
 Decrement reference counter.

Additional Inherited Members

Protected Member Functions inherited from roc::core::ManualAllocation
template<class T>
void destroy (T &)
 No-op. When SharedPtr or ScopedPtr "destroys" object, nothing happens. The user is responsible for destroying it manually.

Detailed Description

Node context.

Definition at line 44 of file context.h.

Constructor & Destructor Documentation

◆ Context()

roc::node::Context::Context ( const ContextConfig & config,
core::IArena & arena )
explicit

Initialize.

◆ ~Context()

roc::node::Context::~Context ( )

Deinitialize.

Member Function Documentation

◆ arena()

core::IArena & roc::node::Context::arena ( )

Get arena.

◆ control_loop()

ctl::ControlLoop & roc::node::Context::control_loop ( )

Get control event loop.

◆ encoding_map()

rtp::EncodingMap & roc::node::Context::encoding_map ( )

Get encoding map.

◆ frame_buffer_pool()

core::IPool & roc::node::Context::frame_buffer_pool ( )

Get frame buffer pool.

◆ is_valid()

bool roc::node::Context::is_valid ( )

Check if successfully constructed.

◆ network_loop()

netio::NetworkLoop & roc::node::Context::network_loop ( )

Get network event loop.

◆ packet_buffer_pool()

core::IPool & roc::node::Context::packet_buffer_pool ( )

Get packet buffer pool.

◆ packet_pool()

core::IPool & roc::node::Context::packet_pool ( )

Get packet pool.


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