Public Member Functions | Protected Member Functions | Protected Attributes | 所有成员列表
cudf::ast::generic_scalar_device_view 类参考

一种类型擦除的 scalar_device_view,其值是固定宽度类型或字符串。更多...

#include <expressions.hpp>

cudf::ast::generic_scalar_device_view 的继承图
cudf::detail::scalar_device_view_base

Public Member Functions

template<typename T >
T const value () const noexcept
 返回存储的值。更多...
 
template<typename T >
 generic_scalar_device_view (numeric_scalar< T > &s)
 从数字标量构造新的通用标量设备视图对象。更多...
 
template<typename T >
 generic_scalar_device_view (timestamp_scalar< T > &s)
 从时间戳标量构造新的通用标量设备视图对象。更多...
 
template<typename T >
 generic_scalar_device_view (duration_scalar< T > &s)
 从时长标量构造新的通用标量设备视图对象。更多...
 
 generic_scalar_device_view (string_scalar &s)
 从字符串标量构造新的通用标量设备视图对象。更多...
 
- 从 cudf::detail::scalar_device_view_base 继承的 Public Member Functions
data_type type () const noexcept
 返回值类型。更多...
 
bool is_valid () const noexcept
 返回值是否有效(即非空)。更多...
 
void set_valid (bool is_valid) noexcept
 更新值的有效性。更多...
 

Protected Member Functions

 generic_scalar_device_view (data_type type, void const *data, bool *is_valid)
 构造一个新的固定宽度标量设备视图对象。更多...
 
 generic_scalar_device_view (data_type type, void const *data, bool *is_valid, size_type size)
 构造一个新的字符串标量设备视图对象。更多...
 
- 从 cudf::detail::scalar_device_view_base 继承的 Protected Member Functions
 scalar_device_view_base (data_type type, bool *is_valid)
 从设备指针和有效性布尔值构造新的标量设备视图基对象。更多...
 

Protected Attributes

void const * _data {}
 指向包含值的设备内存的指针。
 
size_type const _size {}
 字符串标量的字符串大小(字节)。
 
- 从 cudf::detail::scalar_device_view_base 继承的 Protected Attributes
data_type _type {type_id::EMPTY}
 值数据类型。
 
bool * _is_valid {}
 

详细描述

一种类型擦除的 scalar_device_view,其值是固定宽度类型或字符串。

定义于文件 expressions.hpp 的第 174 行。

构造函数和析构函数文档

◆ generic_scalar_device_view() [1/6]

template<typename T >
cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( numeric_scalar< T > &  s)
inline

从数字标量构造新的通用标量设备视图对象。

参数
s用于构造的数字标量

定义于文件 expressions.hpp 的第 196 行。

◆ generic_scalar_device_view() [2/6]

template<typename T >
cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( timestamp_scalar< T > &  s)
inline

从时间戳标量构造新的通用标量设备视图对象。

参数
s用于构造的时间戳标量

定义于文件 expressions.hpp 的第 206 行。

◆ generic_scalar_device_view() [3/6]

template<typename T >
cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( duration_scalar< T > &  s)
inline

从时长标量构造新的通用标量设备视图对象。

参数
s用于构造的时长标量

定义于文件 expressions.hpp 的第 216 行。

◆ generic_scalar_device_view() [4/6]

cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( string_scalar s)
inline

从字符串标量构造新的通用标量设备视图对象。

参数
s用于构造的字符串标量

定义于文件 expressions.hpp 的第 225 行。

◆ generic_scalar_device_view() [5/6]

cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( data_type  type,
void const *  data,
bool *  is_valid 
)
inlineprotected

构造一个新的固定宽度标量设备视图对象。

参数
type值的数据类型
data指向设备内存中数据的指针
is_valid指向设备内存中布尔值的指针,该布尔值指示存储值的有效性

定义于文件 expressions.hpp 的第 242 行。

◆ generic_scalar_device_view() [6/6]

cudf::ast::generic_scalar_device_view::generic_scalar_device_view ( data_type  type,
void const *  data,
bool *  is_valid,
size_type  size 
)
inlineprotected

构造一个新的字符串标量设备视图对象。

参数
type值的数据类型
data指向设备内存中数据的指针
is_valid指向设备内存中布尔值的指针,该布尔值指示存储值的有效性
size字符串大小(字节)

定义于文件 expressions.hpp 的第 255 行。

成员函数文档

◆ value()

template<typename T >
T const cudf::ast::generic_scalar_device_view::value ( ) const
inlinenoexcept

返回存储的值。

模板参数
T所需的类型
返回
存储的值

定义于文件 expressions.hpp 的第 183 行。


本类的文档生成自以下文件