functor for a custom deleter to a unique_ptr of table_view More...
#include <interop.hpp>
Public Member Functions | |
custom_view_deleter (owned_columns_t &&owned) | |
Construct a new custom view deleter object. More... | |
void | operator() (ViewType *ptr) const |
operator to delete the unique_ptr More... | |
Public Attributes | |
owned_columns_t | owned_mem_ |
Owned columns that must be deleted. | |
functor for a custom deleter to a unique_ptr of table_view
When converting from an ArrowDeviceArray, there are cases where data can't be zero-copy (i.e. bools or non-UINT32 dictionary indices). This custom deleter is used to maintain ownership over the data allocated since a cudf::table_view
doesn't hold ownership.
Definition at line 443 of file interop.hpp.
|
inlineexplicit |
Construct a new custom view deleter object.
owned | Vector of owning columns |
Definition at line 449 of file interop.hpp.
|
inline |
operator to delete the unique_ptr
ptr | Pointer to the object to be deleted |
Definition at line 456 of file interop.hpp.