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::JoinRelationSet Struct Reference

Set of relations, used in the join graph. More...

#include <duckdb.hpp>

Collaboration diagram for duckdb::JoinRelationSet:

Public Member Functions

 JoinRelationSet (unsafe_unique_array< idx_t > relations, idx_t count)
string ToString () const

Static Public Member Functions

static bool IsSubset (JoinRelationSet &super, JoinRelationSet &sub)
 Returns true if sub is a subset of super.

Public Attributes

unsafe_unique_array< idx_t > relations
idx_t count

Detailed Description

Set of relations, used in the join graph.

Constructor & Destructor Documentation

◆ JoinRelationSet()

duckdb::JoinRelationSet::JoinRelationSet ( unsafe_unique_array< idx_t > relations,
idx_t count )
inline
20558 : relations(std::move(relations)), count(count) {
20559 }

Member Function Documentation

◆ ToString()

string duckdb::JoinRelationSet::ToString ( ) const
312061 {
312062 string result = "[";
312063 result += StringUtil::Join(relations, count, ", ", [](const idx_t &relation) { return to_string(relation); });
312064 result += "]";
312065 return result;
312066}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497
std::string to_string(const T &value)
Definition duckdb.cpp:19425
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ IsSubset()

bool duckdb::JoinRelationSet::IsSubset ( JoinRelationSet & super,
JoinRelationSet & sub )
static

Returns true if sub is a subset of super.

312070 {
312071 D_ASSERT(sub.count > 0);
312072 if (sub.count > super.count) {
312073 return false;
312074 }
312075 idx_t j = 0;
312076 for (idx_t i = 0; i < super.count; i++) {
312077 if (sub.relations[j] == super.relations[i]) {
312078 j++;
312079 if (j == sub.count) {
312080 return true;
312081 }
312082 }
312083 }
312084 return false;
312085}
GMat sub(const GMat &src1, const GMat &src2, int ddepth=-1)
Here is the caller graph for this function:

The documentation for this struct was generated from the following files: