A type-erased scalar_device_view where the value is a fixed width type.
More...
|
template<typename T > |
T & | value () noexcept |
| Returns reference to stored value. More...
|
|
template<typename T > |
T const & | value () const noexcept |
| Returns const reference to stored value. More...
|
|
template<typename T > |
void | set_value (T value) |
| Stores the value in scalar. More...
|
|
template<typename T > |
T * | data () noexcept |
| Returns a raw pointer to the value in device memory. More...
|
|
template<typename T > |
T const * | data () const noexcept |
| Returns a const raw pointer to the value in device memory. More...
|
|
data_type | type () const noexcept |
| Returns the value type. More...
|
|
bool | is_valid () const noexcept |
| Returns whether the scalar holds a valid value (i.e., not null). More...
|
|
void | set_valid (bool is_valid) noexcept |
| Updates the validity of the value. More...
|
|
A type-erased scalar_device_view where the value is a fixed width type.
Definition at line 80 of file scalar_device_view.cuh.
◆ fixed_width_scalar_device_view_base()
cudf::detail::fixed_width_scalar_device_view_base::fixed_width_scalar_device_view_base |
( |
data_type |
type, |
|
|
void * |
data, |
|
|
bool * |
is_valid |
|
) |
| |
|
inlineprotected |
Construct a new fixed width scalar device view object.
This constructor should not be used directly. get_scalar_device_view should be used to get the view of an existing scalar
- Parameters
-
type | The data type of the value |
data | The pointer to the data in device memory |
is_valid | The pointer to the bool in device memory that indicates the validity of the stored value |
Definition at line 156 of file scalar_device_view.cuh.
◆ data() [1/2]
template<typename T >
T const* cudf::detail::fixed_width_scalar_device_view_base::data |
( |
| ) |
const |
|
inlinenoexcept |
Returns a const raw pointer to the value in device memory.
- Template Parameters
-
- Returns
- Const raw pointer to the value in device memory
Definition at line 137 of file scalar_device_view.cuh.
◆ data() [2/2]
template<typename T >
T* cudf::detail::fixed_width_scalar_device_view_base::data |
( |
| ) |
|
|
inlinenoexcept |
Returns a raw pointer to the value in device memory.
- Template Parameters
-
- Returns
- Raw pointer to the value in device memory
Definition at line 125 of file scalar_device_view.cuh.
◆ set_value()
template<typename T >
void cudf::detail::fixed_width_scalar_device_view_base::set_value |
( |
T |
value | ) |
|
|
inline |
Stores the value in scalar.
- Template Parameters
-
- Parameters
-
value | The value to store in scalar |
Definition at line 113 of file scalar_device_view.cuh.
◆ value() [1/2]
template<typename T >
T const& cudf::detail::fixed_width_scalar_device_view_base::value |
( |
| ) |
const |
|
inlinenoexcept |
Returns const reference to stored value.
- Template Parameters
-
- Returns
- Const reference to stored value
Definition at line 101 of file scalar_device_view.cuh.
◆ value() [2/2]
template<typename T >
T& cudf::detail::fixed_width_scalar_device_view_base::value |
( |
| ) |
|
|
inlinenoexcept |
Returns reference to stored value.
- Template Parameters
-
- Returns
- Reference to stored value
Definition at line 89 of file scalar_device_view.cuh.
The documentation for this class was generated from the following file: