baudvine::RingBuf
STL-like ring buffer in C++11
baudvine::DequeRingBuf< Elem, Capacity, Allocator > Class Template Reference

Public Types

using storage = std::deque< Elem, Allocator >
 
using allocator_type = typename storage::allocator_type
 
using value_type = typename storage::value_type
 
using reference = typename storage::reference
 
using const_reference = typename storage::const_reference
 
using iterator = typename storage::iterator
 
using const_iterator = typename storage::const_iterator
 
using reverse_iterator = typename storage::reverse_iterator
 
using const_reverse_iterator = typename storage::const_reverse_iterator
 
using difference_type = typename storage::difference_type
 
using size_type = typename storage::size_type
 

Public Member Functions

 DequeRingBuf (const allocator_type &alloc)
 
 DequeRingBuf (const DequeRingBuf &other, const allocator_type &allocator)
 
 DequeRingBuf (DequeRingBuf &&other, const allocator_type &allocator)
 
allocator_type get_allocator () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
reference at (size_type index)
 
const_reference at (size_type index) const
 
reference operator[] (size_type index)
 
const_reference operator[] (size_type index) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
bool empty () const
 
size_type size () const
 
constexpr size_type max_size () const
 
void clear () noexcept(noexcept(data_.clear()))
 
iterator erase (const_iterator pos) noexcept(noexcept(data_.erase(pos)))
 
iterator erase (const_iterator first, const_iterator last) noexcept(noexcept(data_.erase(first, last)))
 
void push_front (const_reference value)
 
void push_front (value_type &&value)
 
template<typename... Args>
reference emplace_front (Args &&... args)
 
void push_back (const_reference value)
 
void push_back (value_type &&value)
 
template<typename... Args>
reference emplace_back (Args &&... args)
 
void pop_front () noexcept(noexcept(data_.pop_front()))
 
void pop_back () noexcept(noexcept(data_.pop_back()))
 
void swap (DequeRingBuf &other) noexcept(noexcept(data_.swap(other.data_)))
 

Friends

bool operator< (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 
bool operator> (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 
bool operator<= (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 
bool operator>= (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 
bool operator== (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 
bool operator!= (const DequeRingBuf &lhs, const DequeRingBuf &rhs)
 

Detailed Description

template<typename Elem, std::size_t Capacity, typename Allocator = std::allocator<Elem>>
class baudvine::DequeRingBuf< Elem, Capacity, Allocator >

Definition at line 31 of file deque_ringbuf.h.


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