Ardour
9.0-pre0-386-g96ef4d20f2
|
#include <ringbuffer.h>
Classes | |
struct | rw_vector |
Public Member Functions | |
RingBuffer (size_t sz) | |
virtual | ~RingBuffer () |
void | reset () |
void | set (size_t r, size_t w) |
size_t | read (T *dest, size_t cnt) |
size_t | write (T const *src, size_t cnt) |
void | get_read_vector (rw_vector *) |
void | get_write_vector (rw_vector *) |
void | decrement_read_idx (size_t cnt) |
void | increment_read_idx (size_t cnt) |
void | increment_write_idx (size_t cnt) |
size_t | write_space () const |
size_t | read_space () const |
T * | buffer () |
size_t | get_write_idx () const |
size_t | get_read_idx () const |
size_t | bufsize () const |
Protected Attributes | |
T * | buf |
size_t | size |
size_t | size_mask |
std::atomic< int > | write_idx |
std::atomic< int > | read_idx |
Private Member Functions | |
RingBuffer (RingBuffer const &) | |
Definition at line 33 of file ringbuffer.h.
|
inline |
Definition at line 36 of file ringbuffer.h.
|
inlinevirtual |
Definition at line 49 of file ringbuffer.h.
|
private |
|
inline |
Definition at line 116 of file ringbuffer.h.
|
inline |
Definition at line 119 of file ringbuffer.h.
|
inline |
Definition at line 76 of file ringbuffer.h.
|
inline |
Definition at line 118 of file ringbuffer.h.
void PBD::RingBuffer< T >::get_read_vector | ( | rw_vector * | ) |
Definition at line 212 of file ringbuffer.h.
|
inline |
Definition at line 117 of file ringbuffer.h.
void PBD::RingBuffer< T >::get_write_vector | ( | rw_vector * | ) |
Definition at line 253 of file ringbuffer.h.
|
inline |
Definition at line 80 of file ringbuffer.h.
|
inline |
Definition at line 84 of file ringbuffer.h.
size_t PBD::RingBuffer< T >::read | ( | T * | dest, |
size_t | cnt | ||
) |
Definition at line 133 of file ringbuffer.h.
|
inline |
Definition at line 103 of file ringbuffer.h.
|
inline |
Definition at line 53 of file ringbuffer.h.
|
inline |
Definition at line 59 of file ringbuffer.h.
size_t PBD::RingBuffer< T >::write | ( | T const * | src, |
size_t | cnt | ||
) |
Definition at line 172 of file ringbuffer.h.
|
inline |
Definition at line 88 of file ringbuffer.h.
|
protected |
Definition at line 122 of file ringbuffer.h.
|
mutableprotected |
Definition at line 126 of file ringbuffer.h.
|
protected |
Definition at line 123 of file ringbuffer.h.
|
protected |
Definition at line 124 of file ringbuffer.h.
|
mutableprotected |
Definition at line 125 of file ringbuffer.h.