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

Public Member Functions

bool Match (Expression &expr, vector< reference< Expression > > &bindings) override
Public Member Functions inherited from duckdb::ExpressionMatcher
 ExpressionMatcher (ExpressionClass type=ExpressionClass::INVALID)

Public Attributes

vector< unique_ptr< ExpressionMatcher > > matchers
 The matchers for the child expressions.
SetMatcher::Policy policy
 The set matcher matching policy to use.
unique_ptr< FunctionMatcher > function
 The function name to match.
Public Attributes inherited from duckdb::ExpressionMatcher
ExpressionClass expr_class
 The ExpressionClass of the to-be-matched expression. ExpressionClass::INVALID for ANY.
unique_ptr< ExpressionTypeMatcher > expr_type
 Matcher for the ExpressionType of the operator (nullptr for ANY).
unique_ptr< TypeMatcher > type
 Matcher for the return_type of the expression (nullptr for ANY).

Constructor & Destructor Documentation

◆ FunctionExpressionMatcher()

duckdb::FunctionExpressionMatcher::FunctionExpressionMatcher ( )
inline
69466 : ExpressionMatcher(ExpressionClass::BOUND_FUNCTION) {
69467 }

Member Function Documentation

◆ Match()

bool duckdb::FunctionExpressionMatcher::Match ( Expression & expr,
vector< reference< Expression > > & bindings )
overridevirtual

Checks if the given expression matches this ExpressionMatcher. If it does, the expression is appended to the bindings list and true is returned. Otherwise, false is returned.

Reimplemented from duckdb::ExpressionMatcher.

315198 {
315199 if (!ExpressionMatcher::Match(expr_p, bindings)) {
315200 return false;
315201 }
315202 auto &expr = expr_p.Cast<BoundFunctionExpression>();
315203 if (!FunctionMatcher::Match(function, expr.function.name)) {
315204 return false;
315205 }
315206 if (!SetMatcher::Match(matchers, expr.children, bindings, policy)) {
315207 return false;
315208 }
315209 return true;
315210}
virtual bool Match(Expression &expr, vector< reference< Expression > > &bindings)
Definition duckdb.cpp:315124
SetMatcher::Policy policy
The set matcher matching policy to use.
Definition duckdb.cpp:69471
unique_ptr< FunctionMatcher > function
The function name to match.
Definition duckdb.cpp:69473
vector< unique_ptr< ExpressionMatcher > > matchers
The matchers for the child expressions.
Definition duckdb.cpp:69469
Here is the call graph for this function:

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