リングバッファ More...
#include <RingBuffer.h>
Public Member Functions | |
void | clear (void) |
格納データのクリア | |
bool | empty (void) |
バッファが空か | |
size_t | get (T *data, size_t size) |
データの取り出し | |
void | put (const T *data, size_t size) |
データの格納 | |
RingBuffer (void) | |
size_t | size (void) |
バッファサイズの取得 | |
void | ungetc (const T ch) |
データの書き戻し | |
Private Member Functions | |
RingBuffer & | operator= (const RingBuffer &rhs) |
RingBuffer (const RingBuffer &rhs) | |
Private Attributes | |
std::deque< T > | ring_buffer_ |
リングバッファ
Definition at line 22 of file RingBuffer.h.
qrk::RingBuffer< T >::RingBuffer | ( | void | ) | [inline, explicit] |
Definition at line 25 of file RingBuffer.h.
qrk::RingBuffer< T >::RingBuffer | ( | const RingBuffer< T > & | rhs | ) | [private] |
void qrk::RingBuffer< T >::clear | ( | void | ) | [inline] |
格納データのクリア
Definition at line 95 of file RingBuffer.h.
bool qrk::RingBuffer< T >::empty | ( | void | ) | [inline] |
size_t qrk::RingBuffer< T >::get | ( | T * | data, | |
size_t | size | |||
) | [inline] |
データの取り出し
[out] | data | データ取り出し用バッファ |
[in] | size | 取り出すデータの最大個数 |
Definition at line 72 of file RingBuffer.h.
RingBuffer& qrk::RingBuffer< T >::operator= | ( | const RingBuffer< T > & | rhs | ) | [private] |
void qrk::RingBuffer< T >::put | ( | const T * | data, | |
size_t | size | |||
) | [inline] |
size_t qrk::RingBuffer< T >::size | ( | void | ) | [inline] |
バッファサイズの取得
Definition at line 33 of file RingBuffer.h.
void qrk::RingBuffer< T >::ungetc | ( | const T | ch | ) | [inline] |
std::deque<T> qrk::RingBuffer< T >::ring_buffer_ [private] |
Definition at line 105 of file RingBuffer.h.