A non-owning view into a range of elements in a circular buffer.
Definition at line 22 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
Public Member Functions | |
| CircularBufferRange () noexcept=default | |
| CircularBufferRange (nostd::span< T > first) noexcept | |
| CircularBufferRange (nostd::span< T > first, nostd::span< T > second) noexcept | |
| operator CircularBufferRange< const T > () const noexcept | |
| template<class Callback > | |
| bool | ForEach (Callback callback) const noexcept(noexcept(std::declval< Callback >()(std::declval< T & >()))) |
| Iterate over the elements in the range. More... | |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| CircularBufferRange | Take (size_t n) const noexcept |
| Return a subrange taken from the start of this range. More... | |
| CircularBufferRange () noexcept=default | |
| CircularBufferRange (nostd::span< T > first) noexcept | |
| CircularBufferRange (nostd::span< T > first, nostd::span< T > second) noexcept | |
| operator CircularBufferRange< const T > () const noexcept | |
| template<class Callback > | |
| bool | ForEach (Callback callback) const noexcept(noexcept(std::declval< Callback >()(std::declval< T & >()))) |
| Iterate over the elements in the range. More... | |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| CircularBufferRange | Take (size_t n) const noexcept |
| Return a subrange taken from the start of this range. More... | |
|
defaultnoexcept |
|
inlineexplicitnoexcept |
Definition at line 27 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 29 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
defaultnoexcept |
|
inlineexplicitnoexcept |
Definition at line 27 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 29 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 69 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::empty().
|
inlinenoexcept |
Definition at line 69 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::empty().
|
inlinenoexcept |
Iterate over the elements in the range.
| callback | the callback to call for each element |
Definition at line 41 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Iterate over the elements in the range.
| callback | the callback to call for each element |
Definition at line 41 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 33 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 33 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
|
inlinenoexcept |
Definition at line 64 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::size().
|
inlinenoexcept |
Definition at line 64 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::size().
Referenced by sdk::common::CircularBufferRange< T >::Take().
|
inlinenoexcept |
Return a subrange taken from the start of this range.
| n | the number of element to take in the subrange |
Definition at line 76 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::data(), sdk::common::CircularBufferRange< T >::size(), and nostd::span< T, Extent >::size().
|
inlinenoexcept |
Return a subrange taken from the start of this range.
| n | the number of element to take in the subrange |
Definition at line 76 of file includes/opentelemetry/sdk/common/circular_buffer_range.h.
References nostd::span< T, Extent >::data(), sdk::common::CircularBufferRange< T >::size(), and nostd::span< T, Extent >::size().