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

A Binding represents a binding to a table, table-producing function or subquery with a specified table index. More...

Inheritance diagram for duckdb::Binding:
Collaboration diagram for duckdb::Binding:

Public Member Functions

 Binding (BindingType binding_type, BindingAlias alias, vector< LogicalType > types, vector< string > names, idx_t index)
 
bool TryGetBindingIndex (const string &column_name, column_t &column_index)
 
column_t GetBindingIndex (const string &column_name)
 
bool HasMatchingBinding (const string &column_name)
 
virtual ErrorData ColumnNotFoundError (const string &column_name) const
 
virtual BindResult Bind (ColumnRefExpression &colref, idx_t depth)
 
virtual optional_ptr< StandardEntryGetStandardEntry ()
 
string GetAlias () const
 
BindingType GetBindingType ()
 
const BindingAliasGetBindingAlias ()
 
idx_t GetIndex ()
 
const vector< LogicalType > & GetColumnTypes ()
 
const vector< string > & GetColumnNames ()
 
idx_t GetColumnCount ()
 
void SetColumnType (idx_t col_idx, LogicalType type)
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static BindingAlias GetAlias (const string &explicit_alias, const StandardEntry &entry)
 
static BindingAlias GetAlias (const string &explicit_alias, optional_ptr< StandardEntry > entry)
 

Protected Member Functions

void Initialize ()
 

Protected Attributes

BindingType binding_type
 The type of Binding.
 
BindingAlias alias
 The alias of the binding.
 
idx_t index
 The table index of the binding.
 
vector< LogicalTypetypes
 The types of the bound columns.
 
vector< string > names
 Column names of the subquery.
 
case_insensitive_map_t< column_tname_map
 Name -> index for the names.
 

Detailed Description

A Binding represents a binding to a table, table-producing function or subquery with a specified table index.

Member Function Documentation

◆ Bind()

virtual BindResult duckdb::Binding::Bind ( ColumnRefExpression colref,
idx_t  depth 
)
virtual

Reimplemented in duckdb::DummyBinding.

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::Binding::Cast ( )
inline
1319 {
1320 if (binding_type != TARGET::TYPE) {
1321 throw InternalException("Failed to cast binding to type - binding type mismatch");
1322 }
1323 return reinterpret_cast<TARGET &>(*this);
1324 }
BindingType binding_type
The type of Binding.
Definition duckdb.cpp:1339

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::Binding::Cast ( ) const
inline
1327 {
1328 if (binding_type != TARGET::TYPE) {
1329 throw InternalException("Failed to cast binding to type - binding type mismatch");
1330 }
1331 return reinterpret_cast<const TARGET &>(*this);
1332 }

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