21 #include <cuda_runtime.h>
48 template <
typename IndexType>
99 return std::numeric_limits<value_type>::max();
109 return std::numeric_limits<value_type>::min();
119 return std::numeric_limits<value_type>::lowest();
135 template <
typename Integer>
150 template <
typename Integer>
165 template <
typename Integer>
180 template <
typename Integer>
195 template <
typename Integer>
210 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.
constexpr CUDF_HOST_DEVICE dictionary_wrapper(value_type v)
Construct dictionary_wrapper from a value.
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.
#define CUDF_HOST_DEVICE
Indicates that the function or method is usable on host and device.