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

Public Member Functions

 BoundConjunctionExpression (ExpressionType type)
 BoundConjunctionExpression (ExpressionType type, unique_ptr< Expression > left, unique_ptr< Expression > right)
string ToString () const override
 Convert the Expression to a String.
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
bool PropagatesNullValues () const override
unique_ptr< Expression > Copy () const override
 Create a copy of this expression.
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::Expression
 Expression (ExpressionType type, ExpressionClass expression_class, LogicalType return_type)
bool IsAggregate () const override
 Returns true if this expression is an aggregate or not.
bool IsWindow () const override
 Returns true if the expression has a window function or not.
bool HasSubquery () const override
 Returns true if the query contains a subquery.
bool IsScalar () const override
 Returns true if expression does not contain a group ref or col ref or parameter.
bool HasParameter () const override
 Returns true if the expression has a parameter.
virtual bool IsVolatile () const
virtual bool IsConsistent () const
virtual bool IsFoldable () const
virtual bool CanThrow () const
hash_t Hash () const override
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
Public Member Functions inherited from duckdb::BaseExpression
 BaseExpression (ExpressionType type, ExpressionClass expression_class)
 Create an Expression.
ExpressionClass GetExpressionClass () const
 Returns the class of the expression.
ExpressionType GetExpressionType () const
 Returns the type of the expression.
void SetExpressionTypeUnsafe (ExpressionType new_type)
optional_idx GetQueryLocation () const
 Returns the location in the query (if any).
void SetQueryLocation (optional_idx location)
 Sets the location in the query.
bool HasAlias () const
 Returns true if the expression has a non-empty alias.
const string & GetAlias () const
 Returns the alias of the expression.
void SetAlias (const string &alias_p)
 Sets the alias of the expression.
void SetAlias (string &&alias_p)
 Sets the alias of the expression.
void ClearAlias ()
 Clears the alias of the expression.
virtual string GetName () const
 Get the name of the expression.
void Print () const
 Print the expression to stdout.
bool operator== (const BaseExpression &rhs) const
virtual void Verify () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< Expression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::Expression
static bool Equals (const Expression &left, const Expression &right)
static bool Equals (const unique_ptr< Expression > &left, const unique_ptr< Expression > &right)
static bool ListEquals (const vector< unique_ptr< Expression > > &left, const vector< unique_ptr< Expression > > &right)
static unique_ptr< Expression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::BaseExpression
static bool Equals (const BaseExpression &left, const BaseExpression &right)

Public Attributes

vector< unique_ptr< Expression > > children
Public Attributes inherited from duckdb::Expression
LogicalType return_type
 The return type of the expression.
unique_ptr< BaseStatistics > verification_stats
 Expression statistics (if any) - ONLY USED FOR VERIFICATION.
Public Attributes inherited from duckdb::BaseExpression
ExpressionType type
 Type of the expression.
ExpressionClass expression_class
 The expression class of the node.
string alias
 The alias of the expression,.
optional_idx query_location
 The location in the query (if any).

Static Public Attributes

static constexpr const ExpressionClass TYPE = ExpressionClass::BOUND_CONJUNCTION

Additional Inherited Members

Protected Member Functions inherited from duckdb::Expression
void CopyProperties (const Expression &other)

Constructor & Destructor Documentation

◆ BoundConjunctionExpression() [1/2]

duckdb::BoundConjunctionExpression::BoundConjunctionExpression ( ExpressionType type)
explicit
376111 : Expression(type, ExpressionClass::BOUND_CONJUNCTION, LogicalType::BOOLEAN) {
376112}
ExpressionType type
Type of the expression.
Definition duckdb.hpp:13287

◆ BoundConjunctionExpression() [2/2]

duckdb::BoundConjunctionExpression::BoundConjunctionExpression ( ExpressionType type,
unique_ptr< Expression > left,
unique_ptr< Expression > right )
376116 : BoundConjunctionExpression(type) {
376117 children.push_back(std::move(left));
376118 children.push_back(std::move(right));
376119}

Member Function Documentation

◆ ToString()

string duckdb::BoundConjunctionExpression::ToString ( ) const
overridevirtual

Convert the Expression to a String.

Implements duckdb::BaseExpression.

376121 {
376123}
string ToString() const override
Convert the Expression to a String.
Definition duckdb.cpp:336664
Here is the call graph for this function:

◆ Equals()

bool duckdb::BoundConjunctionExpression::Equals ( const BaseExpression & other) const
overridevirtual

Returns true if this expression is equal to another expression.

Reimplemented from duckdb::BaseExpression.

376125 {
376126 if (!Expression::Equals(other_p)) {
376127 return false;
376128 }
376129 auto &other = other_p.Cast<BoundConjunctionExpression>();
376130 return ExpressionUtil::SetEquals(children, other.children);
376131}
static bool SetEquals(const vector< unique_ptr< ParsedExpression > > &a, const vector< unique_ptr< ParsedExpression > > &b)
SetEquals: check if two sets of expressions are equal (order is not important).
Definition duckdb.cpp:337979
bool Equals(const BaseExpression &other) const override
Returns true if this expression is equal to another expression.
Definition duckdb.hpp:17762
Here is the call graph for this function:

◆ PropagatesNullValues()

bool duckdb::BoundConjunctionExpression::PropagatesNullValues ( ) const
overridevirtual

Reimplemented from duckdb::Expression.

376133 {
376134 return false;
376135}

◆ Copy()

unique_ptr< Expression > duckdb::BoundConjunctionExpression::Copy ( ) const
overridevirtual

Create a copy of this expression.

Implements duckdb::Expression.

376137 {
376138 auto copy = make_uniq<BoundConjunctionExpression>(type);
376139 for (auto &expr : children) {
376140 copy->children.push_back(expr->Copy());
376141 }
376142 copy->CopyProperties(*this);
376143 return std::move(copy);
376144}

◆ Serialize()

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

Reimplemented from duckdb::Expression.

416077 {
416078 Expression::Serialize(serializer);
416079 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(200, "children", children);
416080}

◆ Deserialize()

unique_ptr< Expression > duckdb::BoundConjunctionExpression::Deserialize ( Deserializer & deserializer)
static
416082 {
416083 auto result = duckdb::unique_ptr<BoundConjunctionExpression>(new BoundConjunctionExpression(deserializer.Get<ExpressionType>()));
416084 deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(200, "children", result->children);
416085 return std::move(result);
416086}

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