An owning class to represent a timestamp/duration value in device memory. More...
#include <scalar.hpp>
Public Member Functions | |
chrono_scalar (chrono_scalar &&other)=default | |
Move constructor for chrono_scalar. More... | |
chrono_scalar & | operator= (chrono_scalar const &other)=delete |
chrono_scalar & | operator= (chrono_scalar &&other)=delete |
chrono_scalar (chrono_scalar const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
Construct a new chrono scalar object by deep copying another. More... | |
chrono_scalar (T value, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
Construct a new chrono scalar object. More... | |
chrono_scalar (rmm::device_scalar< T > &&data, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
Construct a new chrono scalar object from existing device memory. More... | |
Public Member Functions inherited from cudf::detail::fixed_width_scalar< T > | |
fixed_width_scalar (fixed_width_scalar &&other)=default | |
Move constructor for fixed_width_scalar. More... | |
fixed_width_scalar & | operator= (fixed_width_scalar const &other)=delete |
fixed_width_scalar & | operator= (fixed_width_scalar &&other)=delete |
fixed_width_scalar (fixed_width_scalar const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
Construct a new fixed-width scalar object by deep copying another. More... | |
void | set_value (T value, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Set the value of the scalar. More... | |
operator value_type () const | |
Explicit conversion operator to get the value of the scalar on the host. | |
T | value (rmm::cuda_stream_view stream=cudf::get_default_stream()) const |
Get the value of the scalar. More... | |
T * | data () |
Returns a raw pointer to the value in device memory. More... | |
T const * | data () const |
Returns a const raw pointer to the value in device memory. More... | |
Public Member Functions inherited from cudf::scalar | |
scalar & | operator= (scalar const &other)=delete |
scalar & | operator= (scalar &&other)=delete |
data_type | type () const noexcept |
Returns the scalar's logical value type. More... | |
void | set_valid_async (bool is_valid, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Updates the validity of the value. More... | |
bool | is_valid (rmm::cuda_stream_view stream=cudf::get_default_stream()) const |
Indicates whether the scalar contains a valid value. More... | |
bool * | validity_data () |
Returns a raw pointer to the validity bool in device memory. More... | |
bool const * | validity_data () const |
Return a const raw pointer to the validity bool in device memory. More... | |
An owning class to represent a timestamp/duration value in device memory.
T | the data type of the timestamp/duration value. |
Definition at line 564 of file scalar.hpp.
|
default |
Move constructor for chrono_scalar.
other | The other chrono_scalar to move from. |
cudf::chrono_scalar< T >::chrono_scalar | ( | chrono_scalar< T > const & | other, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
Construct a new chrono scalar object by deep copying another.
other | The scalar to copy. |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for device memory allocation. |
cudf::chrono_scalar< T >::chrono_scalar | ( | T | value, |
bool | is_valid = true , |
||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
Construct a new chrono scalar object.
value | The initial value of the scalar. |
is_valid | Whether the value held by the scalar is valid. |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for device memory allocation. |
cudf::chrono_scalar< T >::chrono_scalar | ( | rmm::device_scalar< T > && | data, |
bool | is_valid = true , |
||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
Construct a new chrono scalar object from existing device memory.
data | The scalar's data in device memory. |
is_valid | Whether the value held by the scalar is valid. |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for device memory allocation. |