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::TableMacroFunction Class Reference
Inheritance diagram for duckdb::TableMacroFunction:
Collaboration diagram for duckdb::TableMacroFunction:

Public Member Functions

 TableMacroFunction (unique_ptr< QueryNode > query_node)
unique_ptr< MacroFunction > Copy () const override
string ToSQL () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::MacroFunction
 MacroFunction (MacroType type)
void CopyProperties (MacroFunction &other) const
vector< unique_ptr< ParsedExpression > > GetPositionalParametersForSerialization (Serializer &serializer) const
void FinalizeDeserialization ()
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< MacroFunction > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::MacroFunction
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< DummyBinding > CreateDummyBinding (const MacroFunction &macro_def, const string &name, vector< unique_ptr< ParsedExpression > > &positional_arguments, InsertionOrderPreservingMap< unique_ptr< ParsedExpression > > &named_arguments)
static unique_ptr< MacroFunction > Deserialize (Deserializer &deserializer)

Public Attributes

unique_ptr< QueryNode > query_node
 The main query node.
Public Attributes inherited from duckdb::MacroFunction
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< LogicalType > types
 The types of the parameters.

Static Public Attributes

static constexpr const MacroType TYPE = MacroType::TABLE_MACRO

Constructor & Destructor Documentation

◆ TableMacroFunction() [1/2]

duckdb::TableMacroFunction::TableMacroFunction ( unique_ptr< QueryNode > query_node)
explicit
252482 : MacroFunction(MacroType::TABLE_MACRO), query_node(std::move(query_node)) {
252483}
unique_ptr< QueryNode > query_node
The main query node.
Definition duckdb.cpp:24372

◆ TableMacroFunction() [2/2]

duckdb::TableMacroFunction::TableMacroFunction ( void )
252485 : MacroFunction(MacroType::TABLE_MACRO) {
252486}

Member Function Documentation

◆ Copy()

unique_ptr< MacroFunction > duckdb::TableMacroFunction::Copy ( ) const
overridevirtual

Implements duckdb::MacroFunction.

252488 {
252489 auto result = make_uniq<TableMacroFunction>();
252490 result->query_node = query_node->Copy();
252491 this->CopyProperties(*result);
252492 return std::move(result);
252493}

◆ ToSQL()

string duckdb::TableMacroFunction::ToSQL ( ) const
overridevirtual

Reimplemented from duckdb::MacroFunction.

252495 {
252496 return MacroFunction::ToSQL() + StringUtil::Format("TABLE (%s)", query_node->ToString());
252497}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

◆ Serialize()

void duckdb::TableMacroFunction::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::MacroFunction.

417165 {
417166 MacroFunction::Serialize(serializer);
417167 serializer.WritePropertyWithDefault<unique_ptr<QueryNode>>(200, "query_node", query_node);
417168}

◆ Deserialize()

unique_ptr< MacroFunction > duckdb::TableMacroFunction::Deserialize ( Deserializer & deserializer)
static
417170 {
417171 auto result = duckdb::unique_ptr<TableMacroFunction>(new TableMacroFunction());
417172 deserializer.ReadPropertyWithDefault<unique_ptr<QueryNode>>(200, "query_node", result->query_node);
417173 return std::move(result);
417174}

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