Definition at line 28 of file includes/opentelemetry/sdk/common/circular_buffer.h.
Public Member Functions | |
| CircularBuffer (size_t max_size) | |
| CircularBufferRange< const AtomicUniquePtr< T > > | Peek () const noexcept |
| template<class Callback > | |
| void | Consume (size_t n, Callback callback) noexcept |
| Consume elements from the circular buffer's tail. More... | |
| void | Consume (size_t n) noexcept |
| Consume elements from the circular buffer's tail. More... | |
| bool | Add (std::unique_ptr< T > &ptr) noexcept |
| Adds an element into the circular buffer. More... | |
| bool | Add (std::unique_ptr< T > &&ptr) noexcept |
| void | Clear () noexcept |
| Clear the circular buffer. More... | |
| size_t | max_size () const noexcept |
| bool | empty () const noexcept |
| size_t | size () const noexcept |
| uint64_t | consumption_count () const noexcept |
| uint64_t | production_count () const noexcept |
| CircularBuffer (size_t max_size) | |
| CircularBufferRange< const AtomicUniquePtr< T > > | Peek () const noexcept |
| template<class Callback > | |
| void | Consume (size_t n, Callback callback) noexcept |
| Consume elements from the circular buffer's tail. More... | |
| void | Consume (size_t n) noexcept |
| Consume elements from the circular buffer's tail. More... | |
| bool | Add (std::unique_ptr< T > &ptr) noexcept |
| Adds an element into the circular buffer. More... | |
| bool | Add (std::unique_ptr< T > &&ptr) noexcept |
| void | Clear () noexcept |
| Clear the circular buffer. More... | |
| size_t | max_size () const noexcept |
| bool | empty () const noexcept |
| size_t | size () const noexcept |
| uint64_t | consumption_count () const noexcept |
| uint64_t | production_count () const noexcept |
|
inlineexplicit |
Definition at line 31 of file includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::max_size().
|
inlineexplicit |
Definition at line 31 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::max_size().
|
inlinenoexcept |
Definition at line 121 of file includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Add().
|
inlinenoexcept |
Definition at line 121 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Add().
|
inlinenoexcept |
Adds an element into the circular buffer.
| ptr | a pointer to the element to add |
Definition at line 86 of file includes/opentelemetry/sdk/common/circular_buffer.h.
Referenced by sdk::common::CircularBuffer< T >::Add().
|
inlinenoexcept |
Adds an element into the circular buffer.
| ptr | a pointer to the element to add |
Definition at line 86 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Clear the circular buffer.
Note: This method must only be called from the consumer thread.
Definition at line 134 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Consume(), and sdk::common::CircularBuffer< T >::size().
|
inlinenoexcept |
Clear the circular buffer.
Note: This method must only be called from the consumer thread.
Definition at line 134 of file includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Consume(), and sdk::common::CircularBuffer< T >::size().
|
inlinenoexcept |
Consume elements from the circular buffer's tail.
| n | the number of elements to consume |
Note: This method must only be called from the consumer thread.
Definition at line 71 of file includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Consume(), and sdk::common::AtomicUniquePtr< T >::Reset().
|
inlinenoexcept |
Consume elements from the circular buffer's tail.
| n | the number of elements to consume |
Note: This method must only be called from the consumer thread.
Definition at line 71 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
References sdk::common::CircularBuffer< T >::Consume(), and sdk::common::AtomicUniquePtr< T >::Reset().
|
inlinenoexcept |
Consume elements from the circular buffer's tail.
| n | the number of elements to consume |
| callback | the callback to invoke with an AtomicUniquePtr to each consumed element. |
Note: The callback must set the passed AtomicUniquePtr to null.
Note: This method must only be called from the consumer thread.
Definition at line 56 of file includes/opentelemetry/sdk/common/circular_buffer.h.
Referenced by sdk::common::CircularBuffer< T >::Clear(), and sdk::common::CircularBuffer< T >::Consume().
|
inlinenoexcept |
Consume elements from the circular buffer's tail.
| n | the number of elements to consume |
| callback | the callback to invoke with an AtomicUniquePtr to each consumed element. |
Note: The callback must set the passed AtomicUniquePtr to null.
Note: This method must only be called from the consumer thread.
Definition at line 56 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 163 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 163 of file includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 144 of file includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 144 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 139 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 139 of file includes/opentelemetry/sdk/common/circular_buffer.h.
Referenced by sdk::common::CircularBuffer< T >::CircularBuffer().
|
inlinenoexcept |
Note: This method must only be called from the consumer thread.
Definition at line 40 of file includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Note: This method must only be called from the consumer thread.
Definition at line 40 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 168 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Definition at line 168 of file includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Note: this method will only return a correct snapshot of the size if called from the consumer thread.
Definition at line 152 of file 9.2/includes/opentelemetry/sdk/common/circular_buffer.h.
|
inlinenoexcept |
Note: this method will only return a correct snapshot of the size if called from the consumer thread.
Definition at line 152 of file includes/opentelemetry/sdk/common/circular_buffer.h.
Referenced by sdk::common::CircularBuffer< T >::Clear().