公共成员函数 | 公共属性 | 所有成员列表
cudf::custom_view_deleter< ViewType > 结构体模板参考

用于 unique_ptr 的自定义删除器的 functor,该 unique_ptr 指向 table_view 更多...

#include <interop.hpp>

公共成员函数

 custom_view_deleter (owned_columns_t &&owned)
 构造一个新的自定义视图删除器对象。 更多...
 
void operator() (ViewType *ptr) const
 用于删除 unique_ptr 的操作符 更多...
 

公共属性

owned_columns_t owned_mem_
 必须被删除的拥有的列。
 

详细描述

template<typename ViewType>
struct cudf::custom_view_deleter< ViewType >

用于 unique_ptr 的自定义删除器的 functor,该 unique_ptr 指向 table_view

从 ArrowDeviceArray 转换时,有些情况下数据不能是零拷贝的(例如 bool 类型或非 UINT32 的字典索引)。此自定义删除器用于维护分配数据的所有权,因为 cudf::table_view 不持有所有权。

定义于文件 interop.hpp 的第 158 行。

构造函数和析构函数文档

◆ custom_view_deleter()

template<typename ViewType >
cudf::custom_view_deleter< ViewType >::custom_view_deleter ( owned_columns_t &&  owned)
inlineexplicit

构造一个新的自定义视图删除器对象。

参数
owned拥有的列的向量

定义于文件 interop.hpp 的第 164 行。

成员函数文档

◆ operator()()

template<typename ViewType >
void cudf::custom_view_deleter< ViewType >::operator() ( ViewType *  ptr) const
inline

用于删除 unique_ptr 的操作符

参数
ptr指向待删除对象的指针

定义于文件 interop.hpp 的第 171 行。


此结构体的文档生成自以下文件: