libcudf  24.04.00
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
cudf::mutable_table_view Class Reference

A set of mutable_column_views of the same size. More...

#include <table_view.hpp>

Inheritance diagram for cudf::mutable_table_view:
cudf::detail::table_view_base< mutable_column_view >

Public Types

using ColumnView = mutable_column_view
 The type of column views in the table.
 
- Public Types inherited from cudf::detail::table_view_base< mutable_column_view >
using iterator = decltype(std::begin(_columns))
 Iterator type for the table.
 
using const_iterator = decltype(std::cbegin(_columns))
 const iterator type for the table
 

Public Member Functions

mutable_column_viewcolumn (size_type column_index) const
 Returns column at specified index. More...
 
 operator table_view ()
 Creates an immutable table_view of the columns.
 
 mutable_table_view (std::vector< mutable_table_view > const &views)
 Construct a table from a vector of table views. More...
 
- Public Member Functions inherited from cudf::detail::table_view_base< mutable_column_view >
 table_view_base (std::vector< mutable_column_view > const &cols)
 Construct a table from a vector of column views. More...
 
 table_view_base (table_view_base const &)=default
 Copy constructor.
 
 table_view_base (table_view_base &&)=default
 Move constructor.
 
iterator begin () noexcept
 Returns an iterator to the first view in the table. More...
 
const_iterator begin () const noexcept
 Returns an iterator to the first view in the table. More...
 
iterator end () noexcept
 Returns an iterator one past the last column view in the table. More...
 
const_iterator end () const noexcept
 Returns an iterator one past the last column view in the table. More...
 
mutable_column_view const & column (size_type column_index) const
 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...
 
size_type is_empty () const noexcept
 Returns true if num_columns() returns zero, or false otherwise. More...
 
table_view_baseoperator= (table_view_base const &)=default
 Copy assignment operator. More...
 
table_view_baseoperator= (table_view_base &&)=default
 Move assignment operator. More...
 

Detailed Description

A set of mutable_column_views of the same size.

All public member functions and constructors are inherited from table_view_base<mutable_column_view>.

Definition at line 255 of file table_view.hpp.

Constructor & Destructor Documentation

◆ mutable_table_view()

cudf::mutable_table_view::mutable_table_view ( std::vector< mutable_table_view > const &  views)

Construct a table from a vector of table views.

Note
Because a std::vector is constructible from a std::initializer_list, this constructor also supports the following usage:
table_view t0, t1, t2;
...
table_view t{{t0,t1,t2}}; // Creates a `table` from the columns of
t0, t1, t2
Exceptions
cudf::logic_errorIf number of rows mismatch
Parameters
viewsThe vector of table views to construct the table from

Member Function Documentation

◆ column()

mutable_column_view& cudf::mutable_table_view::column ( size_type  column_index) const
inline

Returns column at specified index.

Parameters
column_indexThe index of the desired column
Returns
A mutable column view reference to the desired column

Definition at line 269 of file table_view.hpp.


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