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::ConstantFoldingExpressionMatcher Class Reference

The ConstantFoldingExpressionMatcher matches on any scalar expression (i.e. Expression::IsFoldable is true). More...

Inheritance diagram for duckdb::ConstantFoldingExpressionMatcher:
Collaboration diagram for duckdb::ConstantFoldingExpressionMatcher:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

The ConstantFoldingExpressionMatcher matches on any scalar expression (i.e. Expression::IsFoldable is true).

Member Function Documentation

◆ Match()

bool duckdb::ConstantFoldingExpressionMatcher::Match ( Expression & expr,
vector< reference< Expression > > & bindings )
inlineoverridevirtual

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.

319968 {
319969 // we also do not match on ConstantExpressions, because we cannot fold those any further
319970 if (expr.GetExpressionType() == ExpressionType::VALUE_CONSTANT) {
319971 return false;
319972 }
319973 return FoldableConstantMatcher::Match(expr, bindings);
319974 }
bool Match(Expression &expr, vector< reference< Expression > > &bindings) override
Definition duckdb.cpp:315230
Here is the call graph for this function:

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