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

The AT clause specifies which version of a table to read. More...

Collaboration diagram for duckdb::AtClause:

Public Member Functions

 AtClause (string unit, unique_ptr< ParsedExpression > expr)
const string & Unit ()
unique_ptr< ParsedExpression > & ExpressionMutable ()
string ToString () const
bool Equals (const AtClause &other_p) const
unique_ptr< AtClause > Copy () const
void Serialize (Serializer &serializer) const

Static Public Member Functions

static unique_ptr< AtClause > Deserialize (Deserializer &source)
static bool Equals (optional_ptr< AtClause > lhs, optional_ptr< AtClause > rhs)

Private Attributes

string unit
 The unit (e.g. TIMESTAMP or VERSION).
unique_ptr< ParsedExpression > expr
 The expression that determines which value of the unit we want to read.

Detailed Description

The AT clause specifies which version of a table to read.

Constructor & Destructor Documentation

◆ AtClause()

duckdb::AtClause::AtClause ( string unit,
unique_ptr< ParsedExpression > expr )
350217 : unit(std::move(unit_p)), expr(std::move(expr_p)) {
350218}
string unit
The unit (e.g. TIMESTAMP or VERSION).
Definition duckdb.cpp:296733
unique_ptr< ParsedExpression > expr
The expression that determines which value of the unit we want to read.
Definition duckdb.cpp:296735

Member Function Documentation

◆ Unit()

const string & duckdb::AtClause::Unit ( )
inline
296716 {
296717 return unit;
296718 }

◆ ExpressionMutable()

unique_ptr< ParsedExpression > & duckdb::AtClause::ExpressionMutable ( )
inline
296719 {
296720 return expr;
296721 }

◆ ToString()

string duckdb::AtClause::ToString ( ) const
350220 {
350221 return "AT (" + unit + " => " + expr->ToString() + ")";
350222}

◆ Equals() [1/2]

bool duckdb::AtClause::Equals ( const AtClause & other_p) const
350224 {
350225 return unit == other.unit && expr->Equals(*other.expr);
350226}

◆ Copy()

unique_ptr< AtClause > duckdb::AtClause::Copy ( ) const
350228 {
350229 return make_uniq<AtClause>(unit, expr->Copy());
350230}

◆ Serialize()

void duckdb::AtClause::Serialize ( Serializer & serializer) const
419638 {
419639 serializer.WritePropertyWithDefault<string>(1, "unit", unit);
419640 serializer.WritePropertyWithDefault<unique_ptr<ParsedExpression>>(2, "expr", expr);
419641}

◆ Deserialize()

unique_ptr< AtClause > duckdb::AtClause::Deserialize ( Deserializer & source)
static
419643 {
419644 auto unit = deserializer.ReadPropertyWithDefault<string>(1, "unit");
419645 auto expr = deserializer.ReadPropertyWithDefault<unique_ptr<ParsedExpression>>(2, "expr");
419646 auto result = duckdb::unique_ptr<AtClause>(new AtClause(std::move(unit), std::move(expr)));
419647 return result;
419648}

◆ Equals() [2/2]

bool duckdb::AtClause::Equals ( optional_ptr< AtClause > lhs,
optional_ptr< AtClause > rhs )
static
350232 {
350233 if (lhs.get() == rhs.get()) {
350234 // same pointer OR both are null
350235 return true;
350236 }
350237 if (!lhs || !rhs) {
350238 // one is NULL other is not - always not equal
350239 return false;
350240 }
350241 return lhs->Equals(*rhs);
350242}

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