Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::EnumType Struct Reference

Static Public Member Functions

static DUCKDB_API int64_t GetPos (const LogicalType &type, const string_t &key)
 
static DUCKDB_API const VectorGetValuesInsertOrder (const LogicalType &type)
 
static DUCKDB_API idx_t GetSize (const LogicalType &type)
 
static DUCKDB_API const string GetValue (const Value &val)
 
static DUCKDB_API PhysicalType GetPhysicalType (const LogicalType &type)
 
static DUCKDB_API string_t GetString (const LogicalType &type, idx_t pos)
 

Member Function Documentation

◆ GetPos()

int64_t duckdb::EnumType::GetPos ( const LogicalType type,
const string_t key 
)
static
72495 {
72496 auto info = type.AuxInfo();
72497 switch (type.InternalType()) {
72499 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint8_t>>().GetValues(), key);
72501 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint16_t>>().GetValues(), key);
72503 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint32_t>>().GetValues(), key);
72504 default:
72505 throw InternalException("ENUM can only have unsigned integers (except UINT64) as physical types");
72506 }
72507}
@ UINT32
Unsigned 32-bit little-endian integer.
@ UINT16
Unsigned 16-bit little-endian integer.
@ UINT8
Unsigned 8-bit little-endian integer.

◆ GetString()

string_t duckdb::EnumType::GetString ( const LogicalType type,
idx_t  pos 
)
static
72509 {
72510 D_ASSERT(pos < EnumType::GetSize(type));
72511 return FlatVector::GetData<string_t>(EnumType::GetValuesInsertOrder(type))[pos];
72512}

The documentation for this struct was generated from the following files: