|
Uni20
Asynchronous tensor and runtime library.
|
Write-once async value wrapper that retains a pending write buffer. More...
#include <future_value.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| Async< T > const & | async () const noexcept |
| Access the wrapped Async value as read-only. | |
| FutureValue () | |
| Construct a new, uninitialized FutureValue. | |
| FutureValue (FutureValue &&) noexcept=default | |
| Move constructor. | |
| FutureValue (FutureValue const &)=delete | |
| Non-copyable. | |
| template<typename U > | |
| FutureValue & | operator= (Async< U > &&v) |
| Move-assign from another async source by scheduling an async move. | |
| template<typename U > | |
| FutureValue & | operator= (Async< U > const &v) |
| Assign from another async source by scheduling an async copy. | |
| FutureValue & | operator= (FutureValue &&) noexcept=default |
| Move assignment. | |
| template<typename U > requires std::constructible_from<T, U&&> | |
| FutureValue & | operator= (U &&v) |
| Assign a value immediately into the retained write buffer. | |
| ReadBuffer< T > | read () const |
| Get a read buffer from the wrapped Async value. | |
| Async< T > & | value () |
| Mutable access to the wrapped Async value. | |
| Async< T > const & | value () const |
| Const access to the wrapped Async value. | |
| WriteBuffer< T > | write () noexcept |
| Get the retained write buffer. | |
Write-once async value wrapper that retains a pending write buffer.
| T | Stored value type. |
| using uni20::async::FutureValue< T >::value_type = T |
|
inline |
Construct a new, uninitialized FutureValue.
|
defaultnoexcept |
Move constructor.
|
delete |
Non-copyable.
|
inlinenoexcept |
|
inline |
Move-assign from another async source by scheduling an async move.
| U | Source value type. |
| v | Source async value. |
*this.
|
inline |
Assign from another async source by scheduling an async copy.
| U | Source value type. |
| v | Source async value. |
*this.
|
defaultnoexcept |
Move assignment.
|
inline |
Assign a value immediately into the retained write buffer.
| U | Source type constructible as T. |
| v | Source value. |
*this.
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Get the retained write buffer.