Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::node::Context Class Reference

Node context. More...

#include <context.h>

Inheritance diagram for roc::node::Context:
Collaboration diagram for roc::node::Context:

Public Member Functions

 Context (const ContextConfig &config, core::IArena &arena)
 Initialize. More...
 
 ~Context ()
 Deinitialize. More...
 
bool is_valid ()
 Check if successfully constructed. More...
 
core::IArenaarena ()
 Get arena. More...
 
packet::PacketFactorypacket_factory ()
 Get packet factory. More...
 
core::BufferFactory< uint8_t > & byte_buffer_factory ()
 Get byte buffer factory. More...
 
core::BufferFactory< audio::sample_t > & sample_buffer_factory ()
 Get sample buffer factory. More...
 
rtp::FormatMapformat_map ()
 Get format map. More...
 
netio::NetworkLoopnetwork_loop ()
 Get network event loop. More...
 
ctl::ControlLoopcontrol_loop ()
 Get control event loop. More...
 
- Public Member Functions inherited from roc::core::RefCounted< Context, core::ManualAllocation >
 RefCounted ()
 Initialize. More...
 
 RefCounted (const core::ManualAllocation &policy)
 Initialize. More...
 
int getref () const
 Get reference counter. More...
 
void incref () const
 Increment reference counter. More...
 
void decref () const
 Decrement reference counter. More...
 

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 reponsible for destroying it manually. More...
 

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.

◆ byte_buffer_factory()

core::BufferFactory<uint8_t>& roc::node::Context::byte_buffer_factory ( )

Get byte buffer factory.

◆ control_loop()

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

Get control event loop.

◆ format_map()

rtp::FormatMap& roc::node::Context::format_map ( )

Get format map.

◆ 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_factory()

packet::PacketFactory& roc::node::Context::packet_factory ( )

Get packet factory.

◆ sample_buffer_factory()

core::BufferFactory<audio::sample_t>& roc::node::Context::sample_buffer_factory ( )

Get sample buffer factory.


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