19 #include <cuda_runtime.h>
47 template <
typename IndexType>
82 CUDF_HOST_DEVICE
inline explicit operator value_type()
const {
return _value; }
98 return std::numeric_limits<value_type>::max();
108 return std::numeric_limits<value_type>::min();
118 return std::numeric_limits<value_type>::lowest();
134 template <
typename Integer>
149 template <
typename Integer>
164 template <
typename Integer>
179 template <
typename Integer>
194 template <
typename Integer>
209 template <
typename Integer>
CUDF_HOST_DEVICE bool operator>=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Greater than or equal to operator for dictionary_wrapper.
constexpr CUDF_HOST_DEVICE bool operator<(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Less than operator for dictionary_wrapper.
CUDF_HOST_DEVICE bool operator>(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Greater than operator for dictionary_wrapper.
CUDF_HOST_DEVICE bool operator<=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Less than or equal to operator for dictionary_wrapper.
constexpr bool operator==(data_type const &lhs, data_type const &rhs)
Compares two data_type objects for equality.
bool operator!=(data_type const &lhs, data_type const &rhs)
Compares two data_type objects for inequality.
A strongly typed wrapper for indices in a DICTIONARY type column.
dictionary_wrapper & operator=(dictionary_wrapper &&)=default
Move assignment operator.
dictionary_wrapper(dictionary_wrapper &&)=default
Move constructor.
dictionary_wrapper(dictionary_wrapper const &)=default
Copy constructor.
IndexType value_type
The underlying type of the dictionary.
dictionary_wrapper & operator=(dictionary_wrapper const &)=default
Copy assignment operator.
static constexpr CUDF_HOST_DEVICE value_type lowest_value()
Returns the lowest value of the value type.
static constexpr CUDF_HOST_DEVICE value_type min_value()
Returns the minimum value of the value type.
static constexpr CUDF_HOST_DEVICE value_type max_value()
Returns the maximum value of the value type.
CUDF_HOST_DEVICE value_type value() const
Simple accessor.
Type declarations for libcudf.