定义了 cudf::type_id
运行时类型信息与具体 C++ 类型之间的映射。 更多信息...
#include <cudf/fixed_point/fixed_point.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/error.hpp>
#include <cudf/wrappers/dictionary.hpp>
#include <cudf/wrappers/durations.hpp>
#include <cudf/wrappers/timestamps.hpp>
#include <string>
类 | |
struct | cudf::dispatch_storage_type< Id > |
当您只需要操作底层存储类型时,可在 type_dispatcher 上使用此特化。 更多信息... | |
命名空间 | |
cudf | |
cuDF 接口 | |
宏 | |
#define | CUDF_TYPE_MAPPING(Type, Id) |
用于定义具体 C++ 类型与 cudf::type_id 枚举之间映射的宏。 更多信息... | |
#define | MAP_NUMERIC_SCALAR(Type) |
用于为数值型 C++ 类型的 cudf::numeric_scalar 模板类定义标量类型和设备标量类型的宏。 更多信息... | |
#define | MAP_TIMESTAMP_SCALAR(Type) |
用于为时间戳 C++ 类型的 cudf::timestamp_scalar 模板类定义标量类型和设备标量类型的宏。 更多信息... | |
#define | MAP_DURATION_SCALAR(Type) |
用于为时长 C++ 类型的 cudf::duration_scalar 模板类定义标量类型和设备标量类型的宏。 更多信息... | |
类型定义 | |
template<cudf::type_id Id> | |
using | cudf::id_to_type = typename id_to_type_impl< Id >::type |
将 cudf::type_id 映射到其对应的具体 C++ 类型。 更多信息... | |
template<typename T > | |
using | cudf::device_storage_type_t = std::conditional_t< std::is_same_v< numeric::decimal32, T >, int32_t, std::conditional_t< std::is_same_v< numeric::decimal64, T >, int64_t, std::conditional_t< std::is_same_v< numeric::decimal128, T >, __int128_t, T > >> |
使用 cudf::column 时,“返回”存储在设备上的相应类型。 更多信息... | |
template<typename T > | |
using | cudf::scalar_type_t = typename type_to_scalar_type_impl< T >::ScalarType |
将 C++ 类型映射到存储其值所需的标量类型。 更多信息... | |
template<typename T > | |
using | cudf::scalar_device_type_t = typename type_to_scalar_type_impl< T >::ScalarDeviceType |
将 C++ 类型映射到存储其值所需的设备标量类型。 更多信息... | |
函数 | |
template<typename T > | |
constexpr CUDF_HOST_DEVICE type_id | cudf::base_type_to_id () |
将 C++ 类型映射到其对应的 cudf::type_id 。 更多信息... | |
template<typename T > | |
constexpr type_id | cudf::type_to_id () |
将 C++ 类型映射到其对应的 cudf::type_id 。 更多信息... | |
template<> | |
constexpr type_id | cudf::base_type_to_id< char > () |
将 'char' 类型映射到 type_id::INT8 的特化。 更多信息... | |
template<typename T > | |
constexpr bool | cudf::type_id_matches_device_storage_type (type_id id) |
检查类 fixed_point 类型是否具有与列存储类型 ID 匹配的模板类型 T 。 更多信息... | |
template<template< cudf::type_id > typename IdTypeMap = id_to_type_impl, typename Functor , typename... Ts> | |
CUDF_HOST_DEVICE constexpr decltype(auto) __forceinline__ | cudf::type_dispatcher (cudf::data_type dtype, Functor f, Ts &&... args) |
根据指定的 cudf::data_type 的 id() ,使用类型实例化调用 operator() 模板。 更多信息... | |
template<template< cudf::type_id > typename IdTypeMap = id_to_type_impl, typename F , typename... Ts> | |
CUDF_HOST_DEVICE constexpr decltype(auto) __forceinline__ | cudf::double_type_dispatcher (cudf::data_type type1, cudf::data_type type2, F &&f, Ts &&... args) |
将两个类型模板参数分派给一个可调用对象。 更多信息... | |
std::string | cudf::type_to_name (data_type type) |
返回给定类型的名称。 更多信息... | |
定义了 cudf::type_id
运行时类型信息与具体 C++ 类型之间的映射。
定义于文件 type_dispatcher.hpp。