libcudf
23.12.00
|
A strongly typed wrapper for indices in a DICTIONARY type column. More...
#include <dictionary.hpp>
Public Types | |
using | value_type = IndexType |
The underlying type of the dictionary. | |
Public Member Functions | |
dictionary_wrapper (dictionary_wrapper &&)=default | |
Move constructor. | |
dictionary_wrapper (dictionary_wrapper const &)=default | |
Copy constructor. | |
dictionary_wrapper & | operator= (dictionary_wrapper &&)=default |
Move assignment operator. More... | |
dictionary_wrapper & | operator= (dictionary_wrapper const &)=default |
Copy assignment operator. More... | |
constexpr CUDF_HOST_DEVICE | dictionary_wrapper (value_type v) |
Construct dictionary_wrapper from a value. More... | |
CUDF_HOST_DEVICE | operator value_type () const |
Conversion operator. More... | |
CUDF_HOST_DEVICE value_type | value () const |
Simple accessor. More... | |
Static Public Member Functions | |
static constexpr CUDF_HOST_DEVICE value_type | max_value () |
Returns the maximum value of the value type. More... | |
static constexpr CUDF_HOST_DEVICE value_type | min_value () |
Returns the minimum value of the value type. More... | |
static constexpr CUDF_HOST_DEVICE value_type | lowest_value () |
Returns the lowest value of the value type. More... | |
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.
|
inlineexplicitconstexpr |
Construct dictionary_wrapper from a value.
v | The value to construct the dictionary_wrapper from |
Definition at line 75 of file dictionary.hpp.
|
inlinestaticconstexpr |
Returns the lowest value of the value type.
Definition at line 116 of file dictionary.hpp.
|
inlinestaticconstexpr |
Returns the maximum value of the value type.
Definition at line 96 of file dictionary.hpp.
|
inlinestaticconstexpr |
Returns the minimum value of the value type.
Definition at line 106 of file dictionary.hpp.
|
inlineexplicit |
Conversion operator.
Definition at line 82 of file dictionary.hpp.
|
default |
Move assignment operator.
|
default |
Copy assignment operator.
|
inline |
Simple accessor.
Definition at line 89 of file dictionary.hpp.