Public Types | Public Member Functions | Static Public Member Functions | List of all members
cudf::dictionary_wrapper< IndexType > Struct Template Reference

A strongly typed wrapper for indices in a DICTIONARY type column. More...

#include <dictionary.hpp>

Public Types

using value_type = IndexType

Public Member Functions

 dictionary_wrapper (dictionary_wrapper &&)=default
 dictionary_wrapper (dictionary_wrapper const &v)=default
dictionary_wrapperoperator= (dictionary_wrapper &&)=default
dictionary_wrapperoperator= (const dictionary_wrapper &)=default
constexpr CUDF_HOST_DEVICE dictionary_wrapper (value_type v)
CUDF_HOST_DEVICE operator value_type () const
CUDF_HOST_DEVICE value_type value () const

Static Public Member Functions

static constexpr CUDF_HOST_DEVICE value_type max_value ()
static constexpr CUDF_HOST_DEVICE value_type min_value ()
static constexpr CUDF_HOST_DEVICE value_type lowest_value ()

Detailed Description

template<typename IndexType>
struct cudf::dictionary_wrapper< IndexType >

A strongly typed wrapper for indices in a DICTIONARY type column.

IndexType will be integer types like int32_t.

For example, dictionary32 is a strongly typed wrapper around an int32_t value that holds the offset into the dictionary keys for a specific element.

This wrapper provides common conversion and comparison operations for the IndexType.

Definition at line 48 of file dictionary.hpp.

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