Public Member Functions | List of all members
cudf::data_type Class Reference

Indicator for the logical data type of an element in a column. More...

#include <types.hpp>

Public Member Functions

 data_type (data_type const &)=default
 
 data_type (data_type &&)=default
 
data_typeoperator= (data_type const &)=default
 
data_typeoperator= (data_type &&)=default
 
constexpr data_type (type_id id)
 Construct a new data_type object. More...
 
 data_type (type_id id, int32_t scale)
 Construct a new data_type object for numeric::fixed_point More...
 
CUDA_HOST_DEVICE_CALLABLE type_id id () const noexcept
 Returns the type identifier.
 
CUDA_HOST_DEVICE_CALLABLE int32_t scale () const noexcept
 Returns the scale (for fixed_point types)
 

Detailed Description

Indicator for the logical data type of an element in a column.

Simple types can be be entirely described by their id(), but some types require additional metadata to fully describe elements of that type.

Definition at line 235 of file types.hpp.

Constructor & Destructor Documentation

◆ data_type() [1/2]

constexpr cudf::data_type::data_type ( type_id  id)
inlineexplicitconstexpr

Construct a new data_type object.

Parameters
idThe type's identifier

Definition at line 249 of file types.hpp.

◆ data_type() [2/2]

cudf::data_type::data_type ( type_id  id,
int32_t  scale 
)
inlineexplicit

Construct a new data_type object for numeric::fixed_point

Parameters
idThe fixed_point's identifier
scaleThe fixed_point's scale (see fixed_point::_scale)

Definition at line 257 of file types.hpp.


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