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

Buffer pool. More...

#include <buffer_pool.h>

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

Public Member Functions

 BufferPool (IAllocator &allocator, size_t buff_size, bool poison)
 Initialization. More...
size_t buffer_size () const
 Get buffer size (number of elements in buffer). More...
- Public Member Functions inherited from roc::core::Pool< Buffer< T > >
 Pool (IAllocator &allocator, size_t object_size, bool poison)
 Initialization. More...
void * allocate ()
 Allocate new object. More...
void deallocate (void *memory)
 Free previously allocated memory. More...
void destroy (Buffer< T > &object)
 Destroy object and deallocate its memory. More...

Detailed Description

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

Buffer pool.

Definition at line 23 of file buffer_pool.h.

Constructor & Destructor Documentation

template<class T>
roc::core::BufferPool< T >::BufferPool ( IAllocator allocator,
size_t  buff_size,
bool  poison 


Definition at line 26 of file buffer_pool.h.

Member Function Documentation

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

Get buffer size (number of elements in buffer).

Definition at line 32 of file buffer_pool.h.

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