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

value accessor of column without null bitmask More...

Public Member Functions

 value_accessor (column_device_view const &_col)
 constructor More...
operator() (cudf::size_type i) const
 Returns the value of element at index i More...

Public Attributes

column_device_view const col
 column view of column in device

Detailed Description

template<typename T>
struct cudf::detail::value_accessor< T >

value accessor of column without null bitmask

A unary functor returns scalar value at id. operator() (cudf::size_type id) computes element This functor is only allowed for non-nullable columns.

the return value for element i will return column[i]

cudf::logic_errorif the column is nullable.
cudf::logic_errorif column datatype and template T type mismatch.
Template Parameters
TThe type of elements in the column

Definition at line 1250 of file column_device_view.cuh.

Constructor & Destructor Documentation

◆ value_accessor()

template<typename T >
cudf::detail::value_accessor< T >::value_accessor ( column_device_view const &  _col)


[in]_colcolumn device view of cudf column

Definition at line 1258 of file column_device_view.cuh.

Member Function Documentation

◆ operator()()

template<typename T >
T cudf::detail::value_accessor< T >::operator() ( cudf::size_type  i) const

Returns the value of element at index i

[in]iindex of element
value of element at index i

Definition at line 1268 of file column_device_view.cuh.

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