10 #include <cuda/std/limits>
11 #include <cuda_runtime.h>
18 namespace CUDF_EXPORT
cudf {
36 template <
typename IndexType>
87 return cuda::std::numeric_limits<value_type>::max();
97 return cuda::std::numeric_limits<value_type>::min();
107 return cuda::std::numeric_limits<value_type>::lowest();
123 template <
typename Integer>
138 template <
typename Integer>
153 template <
typename Integer>
168 template <
typename Integer>
183 template <
typename Integer>
198 template <
typename Integer>
CUDF_HOST_DEVICE bool operator==(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Wqual to operator for dictionary_wrapper.
CUDF_HOST_DEVICE bool operator!=(dictionary_wrapper< Integer > const &lhs, dictionary_wrapper< Integer > const &rhs)
Not equal to operator for dictionary_wrapper.
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.
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.