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::VariantExtractBindData Struct Reference
Inheritance diagram for duckdb::VariantExtractBindData:
Collaboration diagram for duckdb::VariantExtractBindData:

Public Member Functions

 VariantExtractBindData (const string &str)
 VariantExtractBindData (uint32_t index)
 VariantExtractBindData (const VariantExtractBindData &other)=default
unique_ptr< FunctionData > Copy () const override
bool Equals (const FunctionData &other) const override
Public Member Functions inherited from duckdb::FunctionData
virtual DUCKDB_API bool SupportStatementCache () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
template<class TARGET>
TARGET & CastNoConst () const

Public Attributes

VariantPathComponent component

Additional Inherited Members

Static Public Member Functions inherited from duckdb::FunctionData
static DUCKDB_API bool Equals (const FunctionData *left, const FunctionData *right)

Constructor & Destructor Documentation

◆ VariantExtractBindData() [1/2]

duckdb::VariantExtractBindData::VariantExtractBindData ( const string & str)
explicit
237771 : FunctionData(), component(str) {
237772}

◆ VariantExtractBindData() [2/2]

duckdb::VariantExtractBindData::VariantExtractBindData ( uint32_t index)
explicit
237773 : FunctionData() {
237774 if (index == 0) {
237775 throw BinderException("Extracting index 0 from VARIANT(ARRAY) is invalid, indexes are 1-based");
237776 }
237777 component = VariantPathComponent(index - 1);
237778}

Member Function Documentation

◆ Copy()

unique_ptr< FunctionData > duckdb::VariantExtractBindData::Copy ( ) const
overridevirtual

Implements duckdb::FunctionData.

237780 {
237781 return make_uniq<VariantExtractBindData>(*this);
237782}

◆ Equals()

bool duckdb::VariantExtractBindData::Equals ( const FunctionData & other) const
overridevirtual

Implements duckdb::FunctionData.

237784 {
237785 auto &bind_data = other.Cast<VariantExtractBindData>();
237786 if (bind_data.component.lookup_mode != component.lookup_mode) {
237787 return false;
237788 }
237789 if (bind_data.component.lookup_mode == VariantChildLookupMode::BY_INDEX &&
237790 bind_data.component.index != component.index) {
237791 return false;
237792 }
237793 if (bind_data.component.lookup_mode == VariantChildLookupMode::BY_KEY && bind_data.component.key != component.key) {
237794 return false;
237795 }
237796 return true;
237797}

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