openMSX
|
This implements a queue on top of circular_buffer (not part of boost). More...
#include <circular_buffer.hh>
Public Types | |
using | value_type = typename circular_buffer< T >::value_type |
using | iterator = typename circular_buffer< T >::iterator |
using | const_iterator = typename circular_buffer< T >::const_iterator |
using | reverse_iterator = typename circular_buffer< T >::reverse_iterator |
using | const_reverse_iterator = typename circular_buffer< T >::const_reverse_iterator |
Public Member Functions | |
cb_queue ()=default | |
cb_queue (size_t capacity) | |
template<typename U > | |
void | push_back (U &&u) |
template<typename U > | |
void | push_back (std::initializer_list< U > list) |
T | pop_front () |
const T & | front () const |
const T & | back () const |
const T & | operator[] (size_t i) const |
auto | begin () |
auto | end () |
auto | begin () const |
auto | end () const |
auto | rbegin () |
auto | rbegin () const |
auto | rend () |
auto | rend () const |
size_t | size () const |
bool | empty () const |
void | clear () |
auto & | getBuffer () |
auto & | getBuffer () const |
This implements a queue on top of circular_buffer (not part of boost).
It will automatically grow the buffer when its capacity is too small while inserting new elements.
Definition at line 334 of file circular_buffer.hh.
using cb_queue< T >::const_iterator = typename circular_buffer<T>::const_iterator |
Definition at line 339 of file circular_buffer.hh.
using cb_queue< T >::const_reverse_iterator = typename circular_buffer<T>::const_reverse_iterator |
Definition at line 341 of file circular_buffer.hh.
using cb_queue< T >::iterator = typename circular_buffer<T>::iterator |
Definition at line 338 of file circular_buffer.hh.
using cb_queue< T >::reverse_iterator = typename circular_buffer<T>::reverse_iterator |
Definition at line 340 of file circular_buffer.hh.
using cb_queue< T >::value_type = typename circular_buffer<T>::value_type |
Definition at line 337 of file circular_buffer.hh.
|
default |
|
inlineexplicit |
Definition at line 344 of file circular_buffer.hh.
|
inline |
Definition at line 362 of file circular_buffer.hh.
|
inline |
Definition at line 365 of file circular_buffer.hh.
|
inline |
Definition at line 367 of file circular_buffer.hh.
|
inline |
Definition at line 376 of file circular_buffer.hh.
Referenced by openmsx::serialize_as_collection< cb_queue< T > >::prepare(), openmsx::MidiInReader::signal(), openmsx::MidiInALSA::signal(), openmsx::RS232Net::signal(), openmsx::RS232Tester::signal(), and TEST_CASE().
|
inline |
Definition at line 375 of file circular_buffer.hh.
Referenced by openmsx::NowindHost::isDataAvailable(), openmsx::RS232Net::setRTS(), openmsx::MidiInReader::signal(), openmsx::MidiInALSA::signal(), openmsx::RS232Net::signal(), openmsx::RS232Tester::signal(), and openmsx::SdCard::transfer().
|
inline |
Definition at line 366 of file circular_buffer.hh.
|
inline |
Definition at line 368 of file circular_buffer.hh.
|
inline |
Definition at line 361 of file circular_buffer.hh.
Referenced by openmsx::NowindHost::peek().
|
inline |
Definition at line 378 of file circular_buffer.hh.
Referenced by openmsx::serialize_as_collection< cb_queue< T > >::output(), and openmsx::serialize_as_collection< cb_queue< T > >::prepare().
|
inline |
Definition at line 379 of file circular_buffer.hh.
|
inline |
Definition at line 363 of file circular_buffer.hh.
|
inline |
Definition at line 355 of file circular_buffer.hh.
References t.
Referenced by openmsx::NowindHost::read(), openmsx::MidiInReader::signal(), openmsx::MidiInALSA::signal(), openmsx::RS232Net::signal(), openmsx::RS232Tester::signal(), TEST_CASE(), and openmsx::SdCard::transfer().
|
inline |
Definition at line 351 of file circular_buffer.hh.
References cb_queue< T >::push_back().
Definition at line 348 of file circular_buffer.hh.
Referenced by cb_queue< T >::push_back(), TEST_CASE(), and openmsx::SdCard::transfer().
|
inline |
Definition at line 369 of file circular_buffer.hh.
|
inline |
Definition at line 370 of file circular_buffer.hh.
|
inline |
Definition at line 371 of file circular_buffer.hh.
|
inline |
Definition at line 372 of file circular_buffer.hh.
|
inline |
Definition at line 374 of file circular_buffer.hh.