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::UnionValue Struct Reference

Static Public Member Functions

static DUCKDB_API const Value & GetValue (const Value &value)
static DUCKDB_API uint8_t GetTag (const Value &value)
static DUCKDB_API const LogicalType & GetType (const Value &value)

Member Function Documentation

◆ GetValue()

const Value & duckdb::UnionValue::GetValue ( const Value & value)
static
133584 {
133585 D_ASSERT(value.type().id() == LogicalTypeId::UNION);
133586 auto &children = StructValue::GetChildren(value);
133587 auto tag = children[0].GetValueUnsafe<union_tag_t>();
133588 D_ASSERT(tag < children.size() - 1);
133589 return children[tag + 1];
133590}

◆ GetTag()

union_tag_t duckdb::UnionValue::GetTag ( const Value & value)
static
133592 {
133593 D_ASSERT(value.type().id() == LogicalTypeId::UNION);
133594 auto children = StructValue::GetChildren(value);
133595 auto tag = children[0].GetValueUnsafe<union_tag_t>();
133596 D_ASSERT(tag < children.size() - 1);
133597 return tag;
133598}

◆ GetType()

const LogicalType & duckdb::UnionValue::GetType ( const Value & value)
static
133600 {
133601 return UnionType::GetMemberType(value.type(), UnionValue::GetTag(value));
133602}

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