27 namespace CUDF_EXPORT
cudf {
43 [[nodiscard]] __host__ __device__
data_type type() const noexcept {
return _type; }
51 [[nodiscard]] __device__
bool is_valid() const noexcept {
return *_is_valid; }
90 __device__ T&
value() noexcept
101 template <
typename T>
102 __device__ T
const&
value() const noexcept
113 template <
typename T>
116 *
static_cast<T*
>(_data) = value;
125 template <
typename T>
126 __device__ T*
data() noexcept
128 return static_cast<T*
>(_data);
137 template <
typename T>
138 __device__ T
const*
data() const noexcept
140 return static_cast<T const*
>(_data);
166 template <
typename T>
176 __device__ T&
value() noexcept {
return fixed_width_scalar_device_view_base::value<T>(); }
183 __device__ T
const&
value() const noexcept
185 return fixed_width_scalar_device_view_base::value<T>();
193 __device__
void set_value(T value) { fixed_width_scalar_device_view_base::set_value<T>(value); }
200 __device__ T*
data() noexcept {
return fixed_width_scalar_device_view_base::data<T>(); }
207 __device__ T
const*
data() const noexcept
209 return fixed_width_scalar_device_view_base::data<T>();
235 template <
typename T>
247 : detail::fixed_width_scalar_device_view<T>(type, data,
is_valid)
255 template <
typename T>
269 : detail::scalar_device_view_base(type,
is_valid), _data(data)
285 __device__
rep_type const&
rep() const noexcept {
return *_data; }
309 : detail::scalar_device_view_base(type,
is_valid), _data(data), _size(size)
328 [[nodiscard]] __device__
char const*
data() const noexcept
330 return static_cast<char const*
>(_data);
338 [[nodiscard]] __device__
size_type size() const noexcept {
return _size; }
348 template <
typename T>
360 : detail::fixed_width_scalar_device_view<T>(type, data,
is_valid)
368 template <
typename T>
380 : detail::fixed_width_scalar_device_view<T>(type, data,
is_valid)
391 template <
typename T>
414 template <
typename T>
426 template <
typename T>
438 template <
typename T>
cudf::detail::fixed_width_scalar_device_view_base
一种类型擦除的 scalar_device_view,其值为固定宽度类型。
391 template <
typename T>
T const & value() const noexcept
cudf::detail::fixed_width_scalar_device_view_base::data
T const * data() const noexcept
cudf::detail::fixed_width_scalar_device_view_base::set_value
void set_value(T value)
T * data() noexcept
返回设备内存中值的原始指针。
cudf::detail::fixed_width_scalar_device_view_base::fixed_width_scalar_device_view_base
fixed_width_scalar_device_view_base(data_type type, void *data, bool *is_valid)
构造一个新的固定宽度 scalar 设备视图对象。
cudf::detail::fixed_width_scalar_device_view
一种 scalar_device_view 类型,其值为固定宽度类型。
cudf::detail::fixed_width_scalar_device_view::set_value
cudf::detail::fixed_width_scalar_device_view::value
cudf::detail::fixed_width_scalar_device_view::value_type
T value_type
cudf::detail::fixed_width_scalar_device_view::data
cudf::detail::fixed_width_scalar_device_view::fixed_width_scalar_device_view
fixed_width_scalar_device_view(data_type type, T *data, bool *is_valid)
cudf::detail::fixed_width_scalar::data
T * data()
scalar 在设备上的非拥有视图,它是可平凡复制的,可在 CUDA 设备代码中使用。
cudf::detail::scalar_device_view_base::is_valid
void set_valid(bool is_valid) noexcept
更新值的有效性。
cudf::detail::scalar_device_view_base::scalar_device_view_base
从设备指针和有效性布尔值构造新的 scalar 设备视图基对象。
data_type type() const noexcept
返回值类型。
一种 scalar_device_view 类型,存储指向 duration 值的指针。
duration_scalar_device_view(data_type type, T *data, bool *is_valid)
从数据指针和有效性指针构造新的 duration scalar 设备视图对象。
cudf::detail::fixed_width_scalar_device_view_base::fixed_width_scalar_device_view_base
cudf::duration_scalar
cudf::fixed_point_scalar_device_view
cudf::fixed_point_scalar_device_view::rep_type
typename T::rep rep_type
cudf::fixed_point_scalar_device_view::rep
获取标量的值,作为 rep_type。
cudf::fixed_point_scalar_device_view::fixed_point_scalar_device_view
从数据指针和有效性指针构造新的定点 scalar 设备视图对象。
cudf::fixed_point_scalar_device_view::set_value
rep_type * data()
cudf::numeric_scalar_device_view
cudf::numeric_scalar_device_view::numeric_scalar_device_view
从数据指针和有效性指针构造新的数值 scalar 设备视图对象。
一个拥有类,用于表示设备内存中的数值。
cudf::scalar::validity_data
返回设备内存中有效性布尔值的原始指针。
cudf::scalar::type
cudf::string_scalar_device_view::value
ValueType value() const noexcept
返回此标量值的 string_view。
cudf::string_scalar_device_view::data
cudf::string_scalar_device_view::size
size_type size() const noexcept
string_scalar_device_view(data_type type, char const *data, bool *is_valid, size_type size)