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

Table device view that is usable in device memory. More...

Inheritance diagram for cudf::table_device_view:
cudf::detail::table_device_view_base< column_device_view, table_view >

Static Public Member Functions

static auto create (table_view source_view, rmm::cuda_stream_view stream=cudf::get_default_stream())
 Factory to construct a table device view that is usable in device memory. More...
 

Additional Inherited Members

- Public Member Functions inherited from cudf::detail::table_device_view_base< column_device_view, 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...
 
column_device_viewbegin () const noexcept
 Returns an iterator to the first view in the table. More...
 
column_device_viewend () const noexcept
 Returns an iterator one past the last column view in the table. More...
 
column_device_view const & column (size_type column_index) const noexcept
 Returns a reference to the view of the specified column. More...
 
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< column_device_view, table_view >
 table_device_view_base (table_view source_view, rmm::cuda_stream_view stream)
 Construct a new table device view base object from host table_view. More...
 
- Protected Attributes inherited from cudf::detail::table_device_view_base< column_device_view, table_view >
rmm::device_buffer * _descendant_storage
 Pointer to device memory holding the descendant storage.
 

Detailed Description

Table device view that is usable in device memory.

Definition at line 161 of file table_device_view.cuh.

Member Function Documentation

◆ create()

static auto cudf::table_device_view::create ( table_view  source_view,
rmm::cuda_stream_view  stream = cudf::get_default_stream() 
)
inlinestatic

Factory to construct a 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<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 table_device_view that makes the data from source_view available in device memory

Definition at line 177 of file table_device_view.cuh.


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