Base class for a table of ColumnView
s.
More...
#include <table_view.hpp>
Public Types | |
using | iterator = decltype(std::begin(_columns)) |
using | const_iterator = decltype(std::cbegin(_columns)) |
Public Member Functions | |
table_view_base (std::vector< ColumnView > const &cols) | |
Construct a table from a vector of column views. More... | |
iterator | begin () noexcept |
Returns an iterator to the first view in the table . | |
const_iterator | begin () const noexcept |
Returns an iterator to the first view in the table . | |
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... | |
ColumnView 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. | |
size_type | num_rows () const noexcept |
Returns the number of rows. | |
size_type | is_empty () const noexcept |
Returns true if num_columns() returns zero, or false otherwise. | |
table_view_base (table_view_base const &)=default | |
table_view_base (table_view_base &&)=default | |
table_view_base & | operator= (table_view_base const &)=default |
table_view_base & | operator= (table_view_base &&)=default |
Base class for a table of ColumnView
s.
This class should not be used directly. Instead: -table_view
should be used for a table of column_view
s -mutable_table_view
should be used for a table of mutable_column_view
s
All public constructors and member functions of table_view_base
are available in both table_view
and mutable_table_view
.
ColumnView | The type of column view the table contains |
Definition at line 50 of file table_view.hpp.
|
explicit |
Construct a table from a vector of column views.
std::vector
is constructible from a std::initializer_list
, this constructor also supports the following usage: cudf::logic_error | If all views do not have the same size |
cols | The vector of columns to construct the table from |
ColumnView const& cudf::detail::table_view_base< ColumnView >::column | ( | size_type | column_index | ) | const |
Returns a reference to the view of the specified column.
std::out_of_range | If column_index is out of the range [0, num_columns) |
column_index | The index of the desired column |
|
inlinenoexcept |
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.
Definition at line 106 of file table_view.hpp.
|
inlinenoexcept |
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.
Definition at line 98 of file table_view.hpp.