libcudf  24.04.00
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

CUDF_HOST_DEVICE pair_accessor (list_device_view const &_list)
 constructor More...
 
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
 The list_device_view to access.
 

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 257 of file list_device_view.cuh.

Constructor & Destructor Documentation

◆ pair_accessor()

template<typename T >
CUDF_HOST_DEVICE 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 265 of file list_device_view.cuh.

Member Function Documentation

◆ operator()()

template<typename T >
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 273 of file list_device_view.cuh.


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