Static Public Member Functions | List of all members
cudf::mutable_table_device_view Class Reference

Mutable table device view that is usable in device memory. More...

Inheritance diagram for cudf::mutable_table_device_view:
cudf::detail::table_device_view_base< mutable_column_device_view, mutable_table_view >

Static Public Member Functions

static std::unique_ptr< mutable_table_device_view, std::function< void(mutable_table_device_view *)> > create (mutable_table_view source_view, rmm::cuda_stream_view stream=cudf::get_default_stream())
 Factory to construct a mutable table device view that is usable in device memory. More...
 

Additional Inherited Members

- Public Member Functions inherited from cudf::detail::table_device_view_base< mutable_column_device_view, mutable_table_view >
 table_device_view_base (table_device_view_base const &)=default
 Copy constructor.
 
 table_device_view_base (table_device_view_base &&)=default
 Move constructor.
 
table_device_view_baseoperator= (table_device_view_base const &)=default
 Copy assignment operator. More...
 
table_device_view_baseoperator= (table_device_view_base &&)=default
 Move assignment operator. More...
 
mutable_column_device_viewbegin () const noexcept
 Returns an iterator to the first view in the table. More...
 
mutable_column_device_viewend () const noexcept
 Returns an iterator one past the last column view in the table. More...
 
mutable_column_device_view const & column (size_type column_index) const noexcept
 Returns a reference to the view of the specified column. More...
 
mutable_column_device_viewcolumn (size_type column_index) noexcept
 Returns a reference to the view of the specified column. More...
 
size_type num_columns () const noexcept
 Returns the number of columns. More...
 
size_type num_rows () const noexcept
 Returns the number of rows. More...
 
void destroy ()
 Destroy the table_device_view object. More...
 
- Protected Member Functions inherited from cudf::detail::table_device_view_base< mutable_column_device_view, mutable_table_view >
 table_device_view_base (mutable_table_view source_view, mutable_column_device_view *columns)
 Constructor for subclasses to create a table device view from a host table view. More...
 

Detailed Description

Mutable table device view that is usable in device memory.

Elements of the table can be modified in device memory.

Definition at line 175 of file table_device_view.cuh.

Member Function Documentation

◆ create()

static std::unique_ptr<mutable_table_device_view, std::function<void(mutable_table_device_view*)> > cudf::mutable_table_device_view::create ( mutable_table_view  source_view,
rmm::cuda_stream_view  stream = cudf::get_default_stream() 
)
static

Factory to construct a mutable table device view that is usable in device memory.

Allocates and copies views of source_view's children to device memory to make them accessible in device code.

Returns a std::unique_ptr<mutable_table_device_view> with a custom deleter to free the device memory allocated for the children.

Parameters
source_viewThe table view whose contents will be copied to create a new table
streamCUDA stream used for device memory operations
Returns
A unique_ptr to a mutable_table_device_view that makes the data from source_view available in device memory

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