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 >
 The type used to store the value on the device.
 

Public Member Functions

CUDF_HOST_DEVICE pair_rep_accessor (list_device_view const &_list)
 constructor More...
 
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
 The list_device_view whose rows are being accessed.
 

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

Constructor & Destructor Documentation

◆ pair_rep_accessor()

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

constructor

Parameters
_listThe list_device_view whose rows are being accessed.

Definition at line 302 of file list_device_view.cuh.

Member Function Documentation

◆ operator()()

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

Accessor for the {rep_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 312 of file list_device_view.cuh.


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