mn_ringbuffer.hpp
Go to the documentation of this file.
Definition: mn_lock.hpp:122
value_type & operator[](difference_type n) const
Definition: mn_ringbuffer.hpp:116
typename T::const_iterator const_ringbuffer_iterator
Definition: mn_ringbuffer.hpp:57
bool operator>=(const self_type &it) const
Definition: mn_ringbuffer.hpp:128
self_type & operator+=(difference_type n)
Definition: mn_ringbuffer.hpp:102
bool operator<(const self_type &it) const
Definition: mn_ringbuffer.hpp:119
bool operator!=(const self_type &other) const
Definition: mn_ringbuffer.hpp:113
bool operator>(const self_type &it) const
Definition: mn_ringbuffer.hpp:122
const T & const_reference
Definition: mn_ringbuffer.hpp:53
bool operator<=(const self_type &it) const
Definition: mn_ringbuffer.hpp:125
self_type operator-(difference_type n)
Definition: mn_ringbuffer.hpp:97
self_type & operator++()
Definition: mn_ringbuffer.hpp:74
basic_ring_buffer_iterator(const basic_ring_buffer_iterator &it)
Definition: mn_ringbuffer.hpp:61
E * operator->()
Definition: mn_ringbuffer.hpp:71
const T * const_pointer
Definition: mn_ringbuffer.hpp:51
size_t size_type
Definition: mn_ringbuffer.hpp:48
bool operator==(const self_type &other) const
Definition: mn_ringbuffer.hpp:110
ptrdiff_t difference_type
Definition: mn_ringbuffer.hpp:49
basic_ring_buffer_iterator(pointer b, size_t start_pos)
Definition: mn_ringbuffer.hpp:59
basic_ring_buffer_iterator & operator=(const basic_ring_buffer_iterator &it)
Definition: mn_ringbuffer.hpp:64
self_type operator+(difference_type n)
Definition: mn_ringbuffer.hpp:92
self_type & operator-=(difference_type n)
Definition: mn_ringbuffer.hpp:106
self_type & operator--()
Definition: mn_ringbuffer.hpp:78
typename T::iterator ringbuffer_iterator
Definition: mn_ringbuffer.hpp:56
size_type size() const
Get the size of the ringbuffer.
Definition: mn_ringbuffer.hpp:259
ptrdiff_t difference_type
Definition: mn_ringbuffer.hpp:157
reference pop_front()
pop (read) the element from the front and remove it from buffer
Definition: mn_ringbuffer.hpp:202
size_type capacity() const
Get the number of stored elements in the buffer.
Definition: mn_ringbuffer.hpp:268
const_reference pop_front() const
pop (read) the element from the front and remove it from buffer
Definition: mn_ringbuffer.hpp:214
basic_ring_buffer_iterator< self_type, value_type > iterator
Definition: mn_ringbuffer.hpp:162
const_reference crfront() const
Definition: mn_ringbuffer.hpp:241
void clear()
Clear the ringbuffer and set read/write positoin to 0.
Definition: mn_ringbuffer.hpp:170
void reset()
Set read/write positoin to 0, for clear use function clear()
Definition: mn_ringbuffer.hpp:178
const T & const_reference
Definition: mn_ringbuffer.hpp:155
bool empty() const
Is the buffer empty?
Definition: mn_ringbuffer.hpp:278
basic_ring_buffer()
Definition: mn_ringbuffer.hpp:165
const T * const_pointer
Definition: mn_ringbuffer.hpp:153
lock_type m_lockObject
Definition: mn_ringbuffer.hpp:333
basic_ring_buffer_iterator< self_type, const value_type > const_iterator
Definition: mn_ringbuffer.hpp:163
bool full() const
Is the buffer full?
Definition: mn_ringbuffer.hpp:288
size_t m_ContentsSize
Definition: mn_ringbuffer.hpp:332
const_reference crback() const
Definition: mn_ringbuffer.hpp:245
void push_back(const value_type &value)
push a value to the end of the buffer
Definition: mn_ringbuffer.hpp:187
This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).
struct mn::memory::detail::ptr_difference T
Definition: mn_atomic_singleton.hpp:38
Definition: mn_allocator_typetraits.hpp:25