A type of scalar_device_view that stores a pointer to a numerical value. More...
Public Member Functions | |
numeric_scalar_device_view (data_type type, T *data, bool *is_valid) | |
![]() | |
__device__ T & | value () noexcept |
Returns reference to stored value. | |
__device__ T const & | value () const noexcept |
Returns const reference to stored value. | |
__device__ void | set_value (T value) |
__device__ T * | data () noexcept |
Returns a raw pointer to the value in device memory. | |
__device__ T const * | data () const noexcept |
Returns a const raw pointer to the value in device memory. | |
![]() | |
template<typename T > | |
__device__ T & | value () noexcept |
Returns reference to stored value. More... | |
template<typename T > | |
__device__ T const & | value () const noexcept |
Returns const reference to stored value. More... | |
template<typename T > | |
__device__ void | set_value (T value) |
template<typename T > | |
__device__ T * | data () noexcept |
Returns a raw pointer to the value in device memory. More... | |
template<typename T > | |
__device__ T const * | data () const noexcept |
Returns a const raw pointer to the value in device memory. More... | |
![]() | |
__host__ __device__ data_type | type () const noexcept |
Returns the value type. | |
__device__ bool | is_valid () const noexcept |
Returns whether the scalar holds a valid value (i.e., not null). More... | |
__device__ void | set_valid (bool is_valid) noexcept |
Updates the validity of the value. More... | |
Additional Inherited Members | |
![]() | |
using | value_type = T |
![]() | |
fixed_width_scalar_device_view (data_type type, T *data, bool *is_valid) | |
Construct a new fixed width scalar device view object. More... | |
![]() | |
fixed_width_scalar_device_view_base (data_type type, void *data, bool *is_valid) | |
Construct a new fixed width scalar device view object. More... | |
![]() | |
scalar_device_view_base (data_type type, bool *is_valid) | |
![]() | |
void * | _data {} |
Pointer to device memory containing the value. | |
![]() | |
data_type | _type {type_id::EMPTY} |
Value data type. | |
bool * | _is_valid {} |
A type of scalar_device_view that stores a pointer to a numerical value.
Definition at line 200 of file scalar_device_view.cuh.