Base class for a table of ColumnView
s.
More...
#include <table_view.hpp>
|
using | iterator = decltype(std::begin(_columns)) |
| Iterator type for the table.
|
|
using | const_iterator = decltype(std::cbegin(_columns)) |
| const iterator type for the table
|
|
template<typename ColumnView>
class cudf::detail::table_view_base< ColumnView >
Base class for a table of ColumnView
s.
This class should not be used directly. Instead:
All public constructors and member functions of table_view_base
are available in both table_view
and mutable_table_view
.
- Template Parameters
-
Definition at line 51 of file table_view.hpp.
◆ table_view_base()
template<typename ColumnView >
Construct a table from a vector of column views.
- Note
- Because a
std::vector
is constructible from a std::initializer_list
, this constructor also supports the following usage: column_view c0, c1, c2;
...
table_view t{{c0,c1,c2}};
- Exceptions
-
- Parameters
-
cols | The vector of columns to construct the table from |
◆ begin() [1/2]
template<typename ColumnView >
Returns an iterator to the first view in the table
.
- Returns
- An iterator to the first view in the
table
Definition at line 95 of file table_view.hpp.
◆ begin() [2/2]
template<typename ColumnView >
Returns an iterator to the first view in the table
.
- Returns
- An iterator to the first column_view
Definition at line 88 of file table_view.hpp.
◆ column()
template<typename ColumnView >
Returns a reference to the view of the specified column.
- Exceptions
-
std::out_of_range | If column_index is out of the range [0, num_columns) |
- Parameters
-
column_index | The index of the desired column |
- Returns
- A reference to the desired column
◆ end() [1/2]
template<typename ColumnView >
Returns an iterator one past the last column view in the table
.
end()
acts as a place holder. Attempting to dereference it results in undefined behavior.
- Returns
- An iterator to one past the last column view in the
table
Definition at line 115 of file table_view.hpp.
◆ end() [2/2]
template<typename ColumnView >
Returns an iterator one past the last column view in the table
.
end()
acts as a place holder. Attempting to dereference it results in undefined behavior.
- Returns
- An iterator to one past the last column view in the
table
Definition at line 105 of file table_view.hpp.
◆ is_empty()
template<typename ColumnView >
◆ num_columns()
template<typename ColumnView >
Returns the number of columns.
- Returns
- The number of columns
Definition at line 133 of file table_view.hpp.
◆ num_rows()
template<typename ColumnView >
Returns the number of rows.
- Returns
- The number of rows
Definition at line 140 of file table_view.hpp.
◆ operator=() [1/2]
template<typename ColumnView >
Move assignment operator.
- Returns
- Reference to this object (after transferring ownership)
◆ operator=() [2/2]
template<typename ColumnView >
Copy assignment operator.
- Returns
- Reference to this object
The documentation for this class was generated from the following file: