Public Member Functions | Public Attributes | List of all members
cudf::custom_view_deleter< ViewType > Struct Template Reference

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.
 

Detailed Description

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

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 439 of file interop.hpp.

Constructor & Destructor Documentation

◆ custom_view_deleter()

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

Construct a new custom view deleter object.

Parameters
ownedVector of owning columns

Definition at line 445 of file interop.hpp.

Member Function Documentation

◆ operator()()

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

operator to delete the unique_ptr

Parameters
ptrPointer to the object to be deleted

Definition at line 452 of file interop.hpp.


The documentation for this struct was generated from the following file: