A non-owning view of scalar from device that is trivially copyable and usable in CUDA device code.
More...
A non-owning view of scalar from device that is trivially copyable and usable in CUDA device code.
Definition at line 33 of file scalar_device_view.cuh.
◆ scalar_device_view_base()
cudf::detail::scalar_device_view_base::scalar_device_view_base |
( |
data_type |
type, |
|
|
bool * |
is_valid |
|
) |
| |
|
inlineprotected |
Construct a new scalar device view base object from a device pointer and a validity boolean.
- Parameters
-
type | The data type of the scalar |
is_valid | Pointer to device memory containing boolean representing validity of the scalar. |
Definition at line 72 of file scalar_device_view.cuh.
◆ is_valid()
bool cudf::detail::scalar_device_view_base::is_valid |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether the scalar holds a valid value (i.e., not null).
- Returns
- true The element is valid
-
false The element is null
Definition at line 50 of file scalar_device_view.cuh.
◆ set_valid()
void cudf::detail::scalar_device_view_base::set_valid |
( |
bool |
is_valid | ) |
|
|
inlinenoexcept |
Updates the validity of the value.
- Parameters
-
is_valid | true: set the value to valid. false: set it to null |
Definition at line 57 of file scalar_device_view.cuh.
◆ type()
data_type cudf::detail::scalar_device_view_base::type |
( |
| ) |
const |
|
inlinenoexcept |
◆ _is_valid
bool* cudf::detail::scalar_device_view_base::_is_valid {} |
|
protected |
Pointer to device memory containing boolean representing validity of the value.
Definition at line 61 of file scalar_device_view.cuh.
The documentation for this class was generated from the following file: