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

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.
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

◆ ComparisonExpressionMatcher()

duckdb::ComparisonExpressionMatcher::ComparisonExpressionMatcher ( )
inline
69419 : ExpressionMatcher(ExpressionClass::BOUND_COMPARISON), policy(SetMatcher::Policy::INVALID) {
69420 }
SetMatcher::Policy policy
The set matcher matching policy to use.
Definition duckdb.cpp:69424
@ INVALID
Not initialized.
Definition duckdb.cpp:69129

Member Function Documentation

◆ Match()

bool duckdb::ComparisonExpressionMatcher::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.

315153 {
315154 if (!ExpressionMatcher::Match(expr_p, bindings)) {
315155 return false;
315156 }
315157 auto &expr = expr_p.Cast<BoundComparisonExpression>();
315158 vector<reference<Expression>> expressions;
315159 expressions.push_back(*expr.left);
315160 expressions.push_back(*expr.right);
315161 return SetMatcher::Match(matchers, expressions, bindings, policy);
315162}
vector< unique_ptr< ExpressionMatcher > > matchers
The matchers for the child expressions.
Definition duckdb.cpp:69422
virtual bool Match(Expression &expr, vector< reference< Expression > > &bindings)
Definition duckdb.cpp:315124
Here is the call graph for this function:
Here is the caller graph for this function:

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