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

pair accessor for elements in a list_device_view More...

Public Member Functions

CUDA_HOST_DEVICE_CALLABLE pair_accessor (list_device_view const &_list)
 constructor More...
 
CUDA_DEVICE_CALLABLE thrust::pair< T, bool > operator() (cudf::size_type i) const
 Accessor for the {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_accessor< T >

pair accessor for elements in a list_device_view

This unary functor returns a pair of:

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

Definition at line 210 of file list_device_view.cuh.

Constructor & Destructor Documentation

◆ pair_accessor()

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

constructor

Parameters
_listThe list_device_view whose rows are being accessed.

Definition at line 218 of file list_device_view.cuh.

Member Function Documentation

◆ operator()()

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

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

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

Definition at line 227 of file list_device_view.cuh.


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