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

Public Member Functions

 StatementNode (SQLStatement &stmt_p)
string ToString () const override
 Convert the query node to a string.
bool Equals (const QueryNode *other) const override
unique_ptr< QueryNode > Copy () const override
 Create a copy of this SelectNode.
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::QueryNode
 QueryNode (QueryNodeType type)
string ResultModifiersToString () const
void AddDistinct ()
 Adds a distinct modifier to the query node.
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< QueryNode > Deserialize (Deserializer &source)
Static Public Member Functions inherited from duckdb::QueryNode
static unique_ptr< QueryNode > Deserialize (Deserializer &deserializer)

Public Attributes

SQLStatement & stmt
Public Attributes inherited from duckdb::QueryNode
QueryNodeType type
 The type of the query node, either SetOperation or Select.
vector< unique_ptr< ResultModifier > > modifiers
 The set of result modifiers associated with this query node.
CommonTableExpressionMap cte_map
 CTEs (used by SelectNode and SetOperationNode).

Static Public Attributes

static constexpr const QueryNodeType TYPE = QueryNodeType::STATEMENT_NODE

Additional Inherited Members

Protected Member Functions inherited from duckdb::QueryNode
void CopyProperties (QueryNode &other) const
 Copy base QueryNode properties from another expression to this one, used in Copy method.

Constructor & Destructor Documentation

◆ StatementNode()

duckdb::StatementNode::StatementNode ( SQLStatement & stmt_p)
explicit
348397 : QueryNode(QueryNodeType::STATEMENT_NODE), stmt(stmt_p) {
348398}

Member Function Documentation

◆ ToString()

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

Convert the query node to a string.

Implements duckdb::QueryNode.

348401 {
348402 return stmt.ToString();
348403}

◆ Equals()

bool duckdb::StatementNode::Equals ( const QueryNode * other) const
overridevirtual

Reimplemented from duckdb::QueryNode.

348405 {
348406 if (!QueryNode::Equals(other_p)) {
348407 return false;
348408 }
348409 if (this == other_p) {
348410 return true;
348411 }
348412 auto &other = other_p->Cast<StatementNode>();
348413 return RefersToSameObject(stmt, other.stmt);
348414}
bool RefersToSameObject(const reference< T > &a, const reference< T > &b)
Returns whether or not two reference wrappers refer to the same object.
Definition duckdb.hpp:2191

◆ Copy()

unique_ptr< QueryNode > duckdb::StatementNode::Copy ( ) const
overridevirtual

Create a copy of this SelectNode.

Implements duckdb::QueryNode.

348417 {
348418 return make_uniq<StatementNode>(stmt);
348419}

◆ Serialize()

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

Serializes a QueryNode to a stand-alone binary blob Deserializes a blob back into a QueryNode

Reimplemented from duckdb::QueryNode.

348424 {
348425 throw InternalException("StatementNode cannot be serialized");
348426}

◆ Deserialize()

unique_ptr< QueryNode > duckdb::StatementNode::Deserialize ( Deserializer & source)
static
348428 {
348429 throw InternalException("StatementNode cannot be deserialized");
348430}

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