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

Static Public Member Functions

static DUCKDB_API idx_t GetMemberCount (const LogicalType &type)
static DUCKDB_API const LogicalType & GetMemberType (const LogicalType &type, idx_t index)
static DUCKDB_API const string & GetMemberName (const LogicalType &type, idx_t index)
static DUCKDB_API const child_list_t< LogicalType > CopyMemberTypes (const LogicalType &type)

Static Public Attributes

static DUCKDB_API const idx_t MAX_UNION_MEMBERS = 256

Member Function Documentation

◆ GetMemberCount()

idx_t duckdb::UnionType::GetMemberCount ( const LogicalType & type)
static
140727 {
140728 // don't count the "tag" field
140729 return StructType::GetChildTypes(type).size() - 1;
140730}

◆ GetMemberType()

const LogicalType & duckdb::UnionType::GetMemberType ( const LogicalType & type,
idx_t index )
static
140713 {
140714 auto &child_types = StructType::GetChildTypes(type);
140715 D_ASSERT(index < child_types.size());
140716 // skip the "tag" field
140717 return child_types[index + 1].second;
140718}
index

◆ GetMemberName()

const string & duckdb::UnionType::GetMemberName ( const LogicalType & type,
idx_t index )
static
140720 {
140721 auto &child_types = StructType::GetChildTypes(type);
140722 D_ASSERT(index < child_types.size());
140723 // skip the "tag" field
140724 return child_types[index + 1].first;
140725}

◆ CopyMemberTypes()

const child_list_t< LogicalType > duckdb::UnionType::CopyMemberTypes ( const LogicalType & type)
static
140731 {
140732 auto child_types = StructType::GetChildTypes(type);
140733 child_types.erase(child_types.begin());
140734 return child_types;
140735}

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