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::MacroFunction Class Referenceabstract
Inheritance diagram for duckdb::MacroFunction:
Collaboration diagram for duckdb::MacroFunction:

Public Member Functions

 MacroFunction (MacroType type)
 
void CopyProperties (MacroFunction &other) const
 
virtual unique_ptr< MacroFunctionCopy () const =0
 
vector< unique_ptr< ParsedExpression > > GetPositionalParametersForSerialization (Serializer &serializer) const
 
void FinalizeDeserialization ()
 
virtual string ToSQL () const
 
virtual void Serialize (Serializer &serializer) const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static MacroBindResult BindMacroFunction (Binder &binder, const vector< unique_ptr< MacroFunction > > &macro_functions, const string &name, FunctionExpression &function_expr, vector< unique_ptr< ParsedExpression > > &positional_arguments, InsertionOrderPreservingMap< unique_ptr< ParsedExpression > > &named_arguments, idx_t depth)
 
static unique_ptr< DummyBindingCreateDummyBinding (const MacroFunction &macro_def, const string &name, vector< unique_ptr< ParsedExpression > > &positional_arguments, InsertionOrderPreservingMap< unique_ptr< ParsedExpression > > &named_arguments)
 
static unique_ptr< MacroFunctionDeserialize (Deserializer &deserializer)
 

Public Attributes

MacroType type
 The type.
 
vector< unique_ptr< ParsedExpression > > parameters
 The parameters (ColumnRefExpression)
 
InsertionOrderPreservingMap< unique_ptr< ParsedExpression > > default_parameters
 The default values of the parameters.
 
vector< LogicalTypetypes
 The types of the parameters.
 

Constructor & Destructor Documentation

◆ ~MacroFunction()

virtual duckdb::MacroFunction::~MacroFunction ( )
inlinevirtual
2356 {
2357 }

Member Function Documentation

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::MacroFunction::Cast ( )
inline
2383 {
2384 if (type != TARGET::TYPE) {
2385 throw InternalException("Failed to cast macro to type - macro type mismatch");
2386 }
2387 return reinterpret_cast<TARGET &>(*this);
2388 }
MacroType type
The type.
Definition duckdb.cpp:2347

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::MacroFunction::Cast ( ) const
inline
2391 {
2392 if (type != TARGET::TYPE) {
2393 throw InternalException("Failed to cast macro to type - macro type mismatch");
2394 }
2395 return reinterpret_cast<const TARGET &>(*this);
2396 }

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