Public Types | Public Member Functions | Public Attributes | List of all members
cudf::list_device_view::pair_rep_accessor< T > Struct Template Reference

pair rep accessor for elements in a list_device_view More...

Public Types

using rep_type = device_storage_type_t< T >

Public Member Functions

CUDA_HOST_DEVICE_CALLABLE pair_rep_accessor (list_device_view const &_list)
 constructor More...
CUDA_DEVICE_CALLABLE thrust::pair< rep_type, bool > operator() (cudf::size_type i) const
 Accessor for the {rep_data, validity} pair at the specified index. More...

Public Attributes

list_device_view const & list

Detailed Description

template<typename T>
struct cudf::list_device_view::pair_rep_accessor< T >

pair rep accessor for elements in a list_device_view

Returns a pair<rep_type, bool>, where rep_type = device_storage_type_t<T>, the type used to store the value on the device.

This unary functor returns a pair of:

  1. rep element at a specified index
  2. boolean validity flag for that element
Template Parameters
TThe element-type of the list row

Definition at line 246 of file list_device_view.cuh.

Constructor & Destructor Documentation

◆ pair_rep_accessor()

template<typename T >
CUDA_HOST_DEVICE_CALLABLE cudf::list_device_view::pair_rep_accessor< T >::pair_rep_accessor ( list_device_view const &  _list)


_listThe list_device_view whose rows are being accessed.

Definition at line 256 of file list_device_view.cuh.

Member Function Documentation

◆ operator()()

template<typename T >
CUDA_DEVICE_CALLABLE thrust::pair<rep_type, bool> cudf::list_device_view::pair_rep_accessor< T >::operator() ( cudf::size_type  i) const

Accessor for the {rep_data, validity} pair at the specified index.

iIndex into the list_device_view
A pair of data element and its validity flag.

Definition at line 268 of file list_device_view.cuh.

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