|
| ring_buffer_iterator () noexcept=default |
| Default constructor.
|
| ring_buffer_iterator (buffer_t source, size_type index, size_type count) noexcept |
| Constructor with source buffer, current index, and count.
|
| ring_buffer_iterator (ring_buffer_iterator const &) noexcept=default |
| Copy constructor.
|
ring_buffer_iterator & | operator= (ring_buffer_iterator const &) noexcept=default |
| Copy assignment operator.
|
template<bool Z = C, typename std::enable_if<(!Z), int >::type * = nullptr> |
reference | operator* () noexcept |
| Dereference operator (non-const version)
|
template<bool Z = C, typename std::enable_if<(Z), int >::type * = nullptr> |
const_reference | operator* () const noexcept |
| Dereference operator (const version)
|
template<bool Z = C, typename std::enable_if<(!Z), int >::type * = nullptr> |
reference | operator-> () noexcept |
| Arrow operator (non-const version)
|
template<bool Z = C, typename std::enable_if<(Z), int >::type * = nullptr> |
const_reference | operator-> () const noexcept |
| Arrow operator (const version)
|
self_type & | operator++ () noexcept |
| Pre-increment operator.
|
self_type | operator++ (int) noexcept |
| Post-increment operator.
|
size_type | index () const noexcept |
| Get the current index in the buffer.
|
size_type | count () const noexcept |
| Get the current count of accessed elements.
|
| ~ring_buffer_iterator ()=default |
| Destructor.
|
template<typename T, size_t N, bool C, bool Overwrite>
class qb::detail::ring_buffer_iterator< T, N, C, Overwrite >
Iterator for ring_buffer.
- Template Parameters
-
T | The type of elements in the buffer |
N | The capacity of the buffer |
C | Whether this is a const iterator (true) or non-const iterator (false) |
Overwrite | Whether to overwrite old elements when the buffer is full |
template<typename T, size_t N, bool C, bool Overwrite>
template<bool Z = C, typename std::enable_if<(!Z), int >::type * = nullptr>
Dereference operator (non-const version)
- Returns
- Reference to the current element
template<typename T, size_t N, bool C, bool Overwrite>
template<bool Z = C, typename std::enable_if<(Z), int >::type * = nullptr>
Dereference operator (const version)
- Returns
- Const reference to the current element
template<typename T, size_t N, bool C, bool Overwrite>
template<bool Z = C, typename std::enable_if<(!Z), int >::type * = nullptr>
Arrow operator (non-const version)
- Returns
- Pointer to the current element
template<typename T, size_t N, bool C, bool Overwrite>
template<bool Z = C, typename std::enable_if<(Z), int >::type * = nullptr>
Arrow operator (const version)
- Returns
- Const pointer to the current element