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

Public Member Functions

DUCKDB_API PositionalReferenceExpression (idx_t index)
bool IsScalar () const override
 Returns true if expression does not contain a group ref or col ref or parameter.
string ToString () const override
 Convert the Expression to a String.
unique_ptr< ParsedExpression > Copy () const override
 Create a copy of this expression.
hash_t Hash () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::ParsedExpression
 ParsedExpression (ExpressionType type, ExpressionClass expression_class)
 Create an Expression.
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 HasParameter () const override
 Returns true if the expression has a parameter.
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 bool Equal (const PositionalReferenceExpression &a, const PositionalReferenceExpression &b)
static unique_ptr< ParsedExpression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParsedExpression
static unique_ptr< ParsedExpression > Deserialize (Deserializer &deserializer)
static bool Equals (const unique_ptr< ParsedExpression > &left, const unique_ptr< ParsedExpression > &right)
static bool ListEquals (const vector< unique_ptr< ParsedExpression > > &left, const vector< unique_ptr< ParsedExpression > > &right)
Static Public Member Functions inherited from duckdb::BaseExpression
static bool Equals (const BaseExpression &left, const BaseExpression &right)

Public Attributes

idx_t index
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::POSITIONAL_REFERENCE

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ PositionalReferenceExpression() [1/2]

duckdb::PositionalReferenceExpression::PositionalReferenceExpression ( idx_t index)
explicit
337326 : ParsedExpression(ExpressionType::POSITIONAL_REFERENCE, ExpressionClass::POSITIONAL_REFERENCE), index(index) {
337327}
ParsedExpression(ExpressionType type, ExpressionClass expression_class)
Create an Expression.
Definition duckdb.hpp:13557

◆ PositionalReferenceExpression() [2/2]

duckdb::PositionalReferenceExpression::PositionalReferenceExpression ( )
private
337322 : ParsedExpression(ExpressionType::POSITIONAL_REFERENCE, ExpressionClass::POSITIONAL_REFERENCE) {
337323}

Member Function Documentation

◆ IsScalar()

bool duckdb::PositionalReferenceExpression::IsScalar ( ) const
inlineoverridevirtual

Returns true if expression does not contain a group ref or col ref or parameter.

Reimplemented from duckdb::ParsedExpression.

337296 {
337297 return false;
337298 }

◆ ToString()

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

Convert the Expression to a String.

Implements duckdb::BaseExpression.

337329 {
337330 return "#" + to_string(index);
337331}
std::string to_string(const T &value)
Definition duckdb.cpp:19425
Here is the call graph for this function:

◆ Equal()

bool duckdb::PositionalReferenceExpression::Equal ( const PositionalReferenceExpression & a,
const PositionalReferenceExpression & b )
static
337334 {
337335 return a.index == b.index;
337336}

◆ Copy()

unique_ptr< ParsedExpression > duckdb::PositionalReferenceExpression::Copy ( ) const
overridevirtual

Create a copy of this expression.

Implements duckdb::ParsedExpression.

337338 {
337339 auto copy = make_uniq<PositionalReferenceExpression>(index);
337340 copy->CopyProperties(*this);
337341 return std::move(copy);
337342}

◆ Hash()

hash_t duckdb::PositionalReferenceExpression::Hash ( ) const
overridevirtual

Creates a hash value of this expression. It is important that if two expressions are identical (i.e. Expression::Equals() returns true), that their hash value is identical as well.

Reimplemented from duckdb::ParsedExpression.

337344 {
337345 hash_t result = ParsedExpression::Hash();
337346 return CombineHash(duckdb::Hash(index), result);
337347}
hash_t Hash() const override
Definition duckdb.cpp:340509
uint64_t hash_t
The type used for hashes.
Definition duckdb.hpp:243
hash_t CombineHash(hash_t left, hash_t right)
Combine two hashes by XORing them.
Definition duckdb.hpp:4635
Here is the call graph for this function:

◆ Serialize()

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

Reimplemented from duckdb::ParsedExpression.

418916 {
418917 ParsedExpression::Serialize(serializer);
418918 serializer.WritePropertyWithDefault<idx_t>(200, "index", index);
418919}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Deserialize()

unique_ptr< ParsedExpression > duckdb::PositionalReferenceExpression::Deserialize ( Deserializer & deserializer)
static
418921 {
418922 auto result = duckdb::unique_ptr<PositionalReferenceExpression>(new PositionalReferenceExpression());
418923 deserializer.ReadPropertyWithDefault<idx_t>(200, "index", result->index);
418924 return std::move(result);
418925}

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