21 namespace CUDF_EXPORT
cudf {
59 cudf_assert(underlying_.
type().
id() == type_id::STRUCT and
60 "structs_column_device_view only supports structs");
63 "structs_column_device_view only supports structs");
67 using column_device_view::child;
70 using column_device_view::offset;
71 using column_device_view::size;
81 return child(idx).
slice(offset(), size());
An immutable, non-owning view of device data as a column of elements that is trivially copyable and u...
CUDF_HOST_DEVICE column_device_view slice(size_type offset, size_type size) const noexcept
Get a new column_device_view which is a slice of this column.
constexpr type_id id() const noexcept
Returns the type identifier.
CUDF_HOST_DEVICE data_type type() const noexcept
Returns the element type.
Given a column_device_view, an instance of this class provides a wrapper on this compound column for ...
column_device_view get_sliced_child(size_type idx) const
Fetches the child column of the underlying struct column.
structs_column_device_view & operator=(structs_column_device_view const &)=default
Copy assignment operator.
structs_column_device_view(structs_column_device_view const &)=default
Copy constructor.
structs_column_device_view & operator=(structs_column_device_view &&)=default
Move assignment operator.
CUDF_HOST_DEVICE structs_column_device_view(column_device_view const &underlying_)
Construct a new structs column device view object from a column device view.
structs_column_device_view(structs_column_device_view &&)=default
Move constructor.
Column device view class definitions.
#define CUDF_EXPECTS(...)
Macro for checking (pre-)conditions that throws an exception when a condition is violated.
int32_t size_type
Row index type for columns and tables.
bool nullable(table_view const &view)
Returns True if any of the columns in the table is nullable. (not entire hierarchy)
Type declarations for libcudf.
#define CUDF_HOST_DEVICE
Indicates that the function or method is usable on host and device.