FE 0.6.0
A header-only C++ library for writing frontends
|
A ring buffer with N
elements.
More...
#include <fe/ring.h>
Public Member Functions | |
Construction | |
Ring (std::initializer_list< T > list) | |
Ring () noexcept=default | |
Ring (const Ring &)=default | |
Ring (Ring &&other) noexcept | |
Ring & | operator= (Ring other) noexcept |
Access | |
T & | front () |
const T & | front () const |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
Modifiers | |
void | reset () |
T | put (T item) |
Puts item into buffer. | |
Friends | |
void | swap (Ring &r1, Ring &r2) noexcept |
A ring buffer with N
elements.
|
inline |
|
defaultnoexcept |
Definition at line 21 of file ring.h.
References fe::Ring< T, N >::swap.
|
inline |
Definition at line 30 of file ring.h.
Referenced by fe::Lexer< K, S >::next().
|
inline |
|
inlinenoexcept |
Definition at line 25 of file ring.h.
References fe::Ring< T, N >::swap.
|
inline |
|
inline |
|
inline |
Puts item
into buffer.
Definition at line 48 of file ring.h.
Referenced by fe::Lexer< K, S >::next().
|
inline |
Definition at line 56 of file ring.h.
Referenced by fe::Ring< T, N >::operator=(), fe::Ring< T, 1 >::operator=(), fe::Ring< T, 2 >::operator=(), fe::Ring< T, N >::Ring(), fe::Ring< T, 1 >::Ring(), and fe::Ring< T, 2 >::Ring().