23 namespace CUDF_EXPORT
cudf {
42 template <
typename ColumnDeviceView,
typename HostTableView>
67 __device__ ColumnDeviceView*
begin() const noexcept {
return _columns; }
77 __device__ ColumnDeviceView*
end() const noexcept {
return _columns + _num_columns; }
87 assert(column_index >= 0);
88 assert(column_index < _num_columns);
89 return _columns[column_index];
100 assert(column_index >= 0);
101 assert(column_index < _num_columns);
102 return _columns[column_index];
128 ColumnDeviceView* _columns{};
208 template <
typename ColumnDeviceView,
typename HostTableView>
An immutable, non-owning view of device data as a column of elements that is trivially copyable and u...
Base class for a device table of ColumnDeviceViews.
size_type num_rows() const noexcept
Returns the number of rows.
ColumnDeviceView const & column(size_type column_index) const noexcept
Returns a reference to the view of the specified column.
table_device_view_base(table_device_view_base &&)=default
Move constructor.
ColumnDeviceView * begin() const noexcept
Returns an iterator to the first view in the table.
void destroy()
Destroy the table_device_view object.
table_device_view_base(table_device_view_base const &)=default
Copy constructor.
table_device_view_base(HostTableView source_view, ColumnDeviceView *columns)
Constructor for subclasses to create a table device view from a host table view.
size_type num_columns() const noexcept
Returns the number of columns.
table_device_view_base & operator=(table_device_view_base const &)=default
Copy assignment operator.
ColumnDeviceView * end() const noexcept
Returns an iterator one past the last column view in the table.
table_device_view_base & operator=(table_device_view_base &&)=default
Move assignment operator.
ColumnDeviceView & column(size_type column_index) noexcept
Returns a reference to the view of the specified column.
A mutable, non-owning view of device data as a column of elements that is trivially copyable and usab...
Mutable table device view that is usable in device memory.
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.
A set of mutable_column_views of the same size.
Table device view that is usable in device memory.
static std::unique_ptr< table_device_view, std::function< void(table_device_view *)> > 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.
A set of cudf::column_view's of the same size.
Column device view class definitions.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
int32_t size_type
Row index type for columns and tables.
std::pair< std::unique_ptr< rmm::device_buffer >, ColumnDeviceView * > create_column_device_views(HostTableView source_view, rmm::cuda_stream_view stream)
Copies the contents of a table_view to a column device view in contiguous device memory.
Class definitions for (mutable)_table_view
Type declarations for libcudf.