Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::Queue Class Reference

Packet queue. More...

#include <queue.h>

Inheritance diagram for roc::packet::Queue:
Collaboration diagram for roc::packet::Queue:

Public Member Functions

virtual PacketPtr read ()
 Read next packet. More...
virtual void write (const PacketPtr &packet)
 Add packet to the queue. More...
size_t size () const
 Get number of packets in queue. More...

Detailed Description

Packet queue.

Definition at line 25 of file queue.h.

Member Function Documentation

virtual PacketPtr roc::packet::Queue::read ( )

Read next packet.

the first packet in the queue or null if there are no packets.

Implements roc::packet::IReader.

size_t roc::packet::Queue::size ( ) const

Get number of packets in queue.

virtual void roc::packet::Queue::write ( const PacketPtr packet)

Add packet to the queue.

Adds packet to the end of the queue.

Implements roc::packet::IWriter.

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