Public Member Functions | List of all members
cudf::io::text::device_data_chunk Class Referenceabstract

A contract guaranteeing stream-ordered memory access to the underlying device data. More...

#include <data_chunk_source.hpp>

Public Member Functions

virtual char const * data () const =0
 Returns a pointer to the underlying device data. More...
 
virtual std::size_t size () const =0
 Returns the size of the underlying device data. More...
 
virtual operator device_span< char const > () const =0
 Returns a span over the underlying device data. More...
 

Detailed Description

A contract guaranteeing stream-ordered memory access to the underlying device data.

This class guarantees access to the underlying data for the stream on which the data was allocated. Possible implementations may own the device data, or may only have a view over the data. Any work enqueued to the stream on which this data was allocated is guaranteed to be performed prior to the destruction of the underlying data, but otherwise no guarantees are made regarding if or when the underlying data gets destroyed.

Definition at line 44 of file data_chunk_source.hpp.

Member Function Documentation

◆ data()

virtual char const* cudf::io::text::device_data_chunk::data ( ) const
pure virtual

Returns a pointer to the underlying device data.

Returns
A pointer to the underlying device data

◆ operator device_span< char const >()

virtual cudf::io::text::device_data_chunk::operator device_span< char const > ( ) const
pure virtual

Returns a span over the underlying device data.

Returns
A span over the underlying device data

◆ size()

virtual std::size_t cudf::io::text::device_data_chunk::size ( ) const
pure virtual

Returns the size of the underlying device data.

Returns
The size of the underlying device data

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