公共类型 | 公共成员函数 | 静态公共成员函数 | 所有成员列表
cudf::dictionary_wrapper< IndexType > 结构模板参考
» » 字典

用于 DICTIONARY 类型列中索引的强类型封装器。 更多...

#include <dictionary.hpp>

公共类型

using value_type = IndexType
 字典的基础类型。
 

公共成员函数

 dictionary_wrapper (dictionary_wrapper &&)=default
 移动构造函数。
 
 dictionary_wrapper (dictionary_wrapper const &)=default
 拷贝构造函数。
 
dictionary_wrapperoperator= (dictionary_wrapper &&)=default
 移动赋值运算符。 更多...
 
dictionary_wrapperoperator= (dictionary_wrapper const &)=default
 拷贝赋值运算符。 更多...
 
constexpr CUDF_HOST_DEVICE dictionary_wrapper (value_type v)
 从一个值构造 dictionary_wrapper更多...
 
CUDF_HOST_DEVICE operator value_type () const
 转换运算符。 更多...
 
CUDF_HOST_DEVICE value_type value () const
 简单访问器。 更多...
 

静态公共成员函数

static constexpr CUDF_HOST_DEVICE value_type max_value ()
 返回值类型的最大值。 更多...
 
static constexpr CUDF_HOST_DEVICE value_type min_value ()
 返回值类型的最小值。 更多...
 
static constexpr CUDF_HOST_DEVICE value_type lowest_value ()
 返回值类型的最低值。 更多...
 

详细描述

template<typename IndexType>
struct cudf::dictionary_wrapper< IndexType >

用于 DICTIONARY 类型列中索引的强类型封装器。

IndexType 将是像 int32_t 这样的整数类型。

例如,dictionary32 是围绕 int32_t 值的强类型封装器,它保存特定元素在字典键中的偏移量。

此封装器提供了 IndexType 的常用转换和比较操作。

定义于文件 dictionary.hpp49 行。

构造函数和析构函数文档

◆ dictionary_wrapper()

template<typename IndexType >
constexpr CUDF_HOST_DEVICE cudf::dictionary_wrapper< IndexType >::dictionary_wrapper ( value_type  v)
inlineexplicitconstexpr

从一个值构造 dictionary_wrapper

参数
v用于构造 dictionary_wrapper 的值

定义于文件 dictionary.hpp76 行。

成员函数文档

◆ lowest_value()

template<typename IndexType >
static constexpr CUDF_HOST_DEVICE value_type cudf::dictionary_wrapper< IndexType >::lowest_value ( )
inlinestaticconstexpr

返回值类型的最低值。

返回
值类型的最低值

定义于文件 dictionary.hpp117 行。

◆ max_value()

template<typename IndexType >
static constexpr CUDF_HOST_DEVICE value_type cudf::dictionary_wrapper< IndexType >::max_value ( )
inlinestaticconstexpr

返回值类型的最大值。

返回
值类型的最大值

定义于文件 dictionary.hpp97 行。

◆ min_value()

template<typename IndexType >
static constexpr CUDF_HOST_DEVICE value_type cudf::dictionary_wrapper< IndexType >::min_value ( )
inlinestaticconstexpr

返回值类型的最小值。

返回
值类型的最小值

定义于文件 dictionary.hpp107 行。

◆ operator value_type()

template<typename IndexType >
CUDF_HOST_DEVICE cudf::dictionary_wrapper< IndexType >::operator value_type ( ) const
inlineexplicit

转换运算符。

返回
此 dictionary wrapper 的值

定义于文件 dictionary.hpp83 行。

◆ operator=() [1/2]

template<typename IndexType >
dictionary_wrapper& cudf::dictionary_wrapper< IndexType >::operator= ( dictionary_wrapper< IndexType > &&  )
default

移动赋值运算符。

返回
对此 dictionary wrapper 对象的引用

◆ operator=() [2/2]

template<typename IndexType >
dictionary_wrapper& cudf::dictionary_wrapper< IndexType >::operator= ( dictionary_wrapper< IndexType > const &  )
default

拷贝赋值运算符。

返回
对此 dictionary wrapper 对象的引用

◆ value()

template<typename IndexType >
CUDF_HOST_DEVICE value_type cudf::dictionary_wrapper< IndexType >::value ( ) const
inline

简单访问器。

返回
此 dictionary wrapper 的值

定义于文件 dictionary.hpp90 行。


此结构的文档由以下文件生成