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::TableRef Class Referenceabstract

Represents a generic expression that returns a table. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::TableRef:
Collaboration diagram for duckdb::TableRef:

Public Member Functions

 TableRef (TableReferenceType type)
 
virtual string ToString () const =0
 Convert the object to a string.
 
void Print ()
 
virtual bool Equals (const TableRef &other) const
 
virtual unique_ptr< TableRefCopy ()=0
 
void CopyProperties (TableRef &target) const
 Copy the properties of this table ref to the target.
 
virtual void Serialize (Serializer &serializer) const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static bool Equals (const unique_ptr< TableRef > &left, const unique_ptr< TableRef > &right)
 
static unique_ptr< TableRefDeserialize (Deserializer &deserializer)
 

Public Attributes

TableReferenceType type
 
string alias
 
unique_ptr< SampleOptionssample
 Sample options (if any)
 
optional_idx query_location
 The location in the query (if any)
 
shared_ptr< ExternalDependencyexternal_dependency
 External dependencies of this table function.
 
vector< string > column_name_alias
 Aliases for the column names.
 

Static Public Attributes

static constexpr const TableReferenceType TYPE = TableReferenceType::INVALID
 

Protected Member Functions

string BaseToString (string result) const
 
string BaseToString (string result, const vector< string > &column_name_alias) const
 
string AliasToString (const vector< string > &column_name_alias) const
 
string SampleToString () const
 

Detailed Description

Represents a generic expression that returns a table.

Constructor & Destructor Documentation

◆ TableRef()

duckdb::TableRef::TableRef ( TableReferenceType  type)
inlineexplicit
53730 : type(type) {
53731 }

◆ ~TableRef()

virtual duckdb::TableRef::~TableRef ( )
inlinevirtual
53732 {
53733 }

Member Function Documentation

◆ ToString()

virtual string duckdb::TableRef::ToString ( ) const
pure virtual

Convert the object to a string.

Implemented in duckdb::DelimGetRef, and duckdb::ShowRef.

◆ Serialize()

virtual void duckdb::TableRef::Serialize ( Serializer serializer) const
virtual

Reimplemented in duckdb::ShowRef.

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::TableRef::Cast ( )
inline
53764 {
53765 if (type != TARGET::TYPE && TARGET::TYPE != TableReferenceType::INVALID) {
53766 throw InternalException("Failed to cast constraint to type - constraint type mismatch");
53767 }
53768 return reinterpret_cast<TARGET &>(*this);
53769 }

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::TableRef::Cast ( ) const
inline
53772 {
53773 if (type != TARGET::TYPE && TARGET::TYPE != TableReferenceType::INVALID) {
53774 throw InternalException("Failed to cast constraint to type - constraint type mismatch");
53775 }
53776 return reinterpret_cast<const TARGET &>(*this);
53777 }

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