21 #include <cuda_runtime.h>
30 namespace CUDF_EXPORT
cudf {
48 template <
typename IndexType>
99 return std::numeric_limits<value_type>::max();
109 return std::numeric_limits<value_type>::min();
119 return std::numeric_limits<value_type>::lowest();
135 template <
typename Integer>
150 template <
typename Integer>
165 template <
typename Integer>
180 template <
typename Integer>
195 template <
typename Integer>
210 template <
typename Integer>
CUDF_HOST_DEVICE bool operator==(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的相等运算符。
CUDF_HOST_DEVICE bool operator!=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的不等运算符。
CUDF_HOST_DEVICE bool operator>=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的大于等于运算符。
constexpr CUDF_HOST_DEVICE bool operator<(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的小于运算符。
CUDF_HOST_DEVICE bool operator>(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的大于运算符。
CUDF_HOST_DEVICE bool operator<=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
dictionary_wrapper 的小于等于运算符。
dictionary_wrapper & operator=(dictionary_wrapper &&)=default
移动赋值运算符。
constexpr CUDF_HOST_DEVICE dictionary_wrapper(value_type v)
从值构造 dictionary_wrapper。
dictionary_wrapper(dictionary_wrapper &&)=default
移动构造函数。
dictionary_wrapper(dictionary_wrapper const &)=default
复制构造函数。
IndexType value_type
字典的底层类型。
dictionary_wrapper & operator=(dictionary_wrapper const &)=default
复制赋值运算符。
static constexpr CUDF_HOST_DEVICE value_type lowest_value()
返回值类型的最低值。
static constexpr CUDF_HOST_DEVICE value_type min_value()
返回值类型的最小值。
static constexpr CUDF_HOST_DEVICE value_type max_value()
返回值类型的最大值。
CUDF_HOST_DEVICE value_type value() const
简单访问器。
#define CUDF_HOST_DEVICE
指示函数或方法可在主机和设备上使用。