|
vecmem 1.23.0
|
Return type for asynchronous size vector retrievals. More...
#include <vecmem/utils/async_sizes.hpp>
Public Types | |
| using | size_type = SIZE_TYPE |
| Size type used. | |
| using | storage_type = vector< size_type > |
| Underlying type that stores the size variables on the heap. | |
| using | const_reference = std::add_lvalue_reference_t< std::add_const_t< storage_type > > |
| Constant (lvalue) reference to the stored size. | |
| using | event_type = std::unique_ptr< abstract_event > |
| Type of the held event. | |
Public Member Functions | |
| async_sizes (storage_type &&sizes, event_type event) | |
| Constructor taking ownership of a size and event. | |
| const_reference | get () const |
| Access the async/future value. | |
Function(s) implemented from @c vecmem::abstract_event | |
| void | wait () override |
| Function that would block the current thread until the event is complete. | |
| void | ignore () override |
| Function telling the object not to wait for the underlying event. | |
Return type for asynchronous size vector retrievals.
| SIZE_TYPE | Type of the size(s) being retrieved asynchronously |
| vecmem::async_sizes< SIZE_TYPE >::async_sizes | ( | storage_type && | sizes, |
| event_type | event | ||
| ) |
Constructor taking ownership of a size and event.
| sizea | The vector holding the size variables |
| event | Event to wait on before accessing the size |
| auto vecmem::async_sizes< SIZE_TYPE >::get | ( | ) | const |
Access the async/future value.
|
overridevirtual |
Function telling the object not to wait for the underlying event.
Implements vecmem::abstract_event.
|
overridevirtual |
Function that would block the current thread until the event is complete.
Implements vecmem::abstract_event.