Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::BufferFactory< T > Class Template Reference

Buffer factory. Allows to instantiate fixed-size buffers. More...

#include <buffer_factory.h>

Inheritance diagram for roc::core::BufferFactory< T >:
Collaboration diagram for roc::core::BufferFactory< T >:

Public Member Functions

 BufferFactory (IArena &arena, size_t buffer_size)
 Initialization. buffer_size defines number of elements in buffer. More...
 
size_t buffer_size () const
 Get number of elements in buffer. More...
 
SharedPtr< Buffer< T > > new_buffer ()
 Allocate new buffer. More...
 

Detailed Description

template<class T>
class roc::core::BufferFactory< T >

Buffer factory. Allows to instantiate fixed-size buffers.

Template Parameters
Tdefine buffer element type.

Definition at line 27 of file buffer_factory.h.

Constructor & Destructor Documentation

◆ BufferFactory()

template<class T >
roc::core::BufferFactory< T >::BufferFactory ( IArena arena,
size_t  buffer_size 
)
inline

Initialization. buffer_size defines number of elements in buffer.

Definition at line 31 of file buffer_factory.h.

Member Function Documentation

◆ buffer_size()

template<class T >
size_t roc::core::BufferFactory< T >::buffer_size ( ) const
inline

Get number of elements in buffer.

Definition at line 37 of file buffer_factory.h.

◆ new_buffer()

template<class T >
SharedPtr<Buffer<T> > roc::core::BufferFactory< T >::new_buffer ( )
inline

Allocate new buffer.

Definition at line 42 of file buffer_factory.h.


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