An owning pointer similar to std::unique_ptr but with methods for atomic operations.
Definition at line 21 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
Public Member Functions | |
| AtomicUniquePtr () noexcept | |
| AtomicUniquePtr (std::unique_ptr< T > &&other) noexcept | |
| ~AtomicUniquePtr () noexcept | |
| T & | operator* () const noexcept |
| T * | operator-> () const noexcept |
| T * | Get () const noexcept |
| bool | IsNull () const noexcept |
| bool | SwapIfNull (std::unique_ptr< T > &owner) noexcept |
| Atomically swap the pointer only if it's null. More... | |
| void | Swap (std::unique_ptr< T > &other) noexcept |
| Atomically swap the pointer with another. More... | |
| void | Reset (T *ptr=nullptr) noexcept |
| Set the pointer to a new value and delete the current value if non-null. More... | |
| AtomicUniquePtr () noexcept | |
| AtomicUniquePtr (std::unique_ptr< T > &&other) noexcept | |
| ~AtomicUniquePtr () noexcept | |
| T & | operator* () const noexcept |
| T * | operator-> () const noexcept |
| T * | Get () const noexcept |
| bool | IsNull () const noexcept |
| bool | SwapIfNull (std::unique_ptr< T > &owner) noexcept |
| Atomically swap the pointer only if it's null. More... | |
| void | Swap (std::unique_ptr< T > &other) noexcept |
| Atomically swap the pointer with another. More... | |
| void | Reset (T *ptr=nullptr) noexcept |
| Set the pointer to a new value and delete the current value if non-null. More... | |
|
inlinenoexcept |
Definition at line 24 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlineexplicitnoexcept |
Definition at line 26 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Definition at line 28 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Reset().
|
inlinenoexcept |
Definition at line 24 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlineexplicitnoexcept |
Definition at line 26 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Definition at line 28 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Reset().
|
inlinenoexcept |
Definition at line 37 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
Referenced by sdk::common::AtomicUniquePtr< T >::operator*(), and sdk::common::AtomicUniquePtr< T >::operator->().
|
inlinenoexcept |
Definition at line 37 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Definition at line 42 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Definition at line 42 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Definition at line 30 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Get().
|
inlinenoexcept |
Definition at line 30 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Get().
|
inlinenoexcept |
Definition at line 32 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Get().
|
inlinenoexcept |
Definition at line 32 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
References sdk::common::AtomicUniquePtr< T >::Get().
|
inlinenoexcept |
Set the pointer to a new value and delete the current value if non-null.
| ptr | the new pointer value to set |
Definition at line 72 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Set the pointer to a new value and delete the current value if non-null.
| ptr | the new pointer value to set |
Definition at line 72 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
Referenced by sdk::common::CircularBuffer< T >::Consume(), and sdk::common::AtomicUniquePtr< T >::~AtomicUniquePtr().
|
inlinenoexcept |
Atomically swap the pointer with another.
| other | The pointer to swap with |
Definition at line 66 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Atomically swap the pointer with another.
| other | The pointer to swap with |
Definition at line 66 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Atomically swap the pointer only if it's null.
| owner | the pointer to swap with |
Definition at line 49 of file includes/opentelemetry/sdk/common/atomic_unique_ptr.h.
|
inlinenoexcept |
Atomically swap the pointer only if it's null.
| owner | the pointer to swap with |
Definition at line 49 of file 9.2/includes/opentelemetry/sdk/common/atomic_unique_ptr.h.