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

The LogicalDependencyList containing LogicalDependency objects, not looked up in the catalog yet. More...

#include <duckdb.hpp>

Collaboration diagram for duckdb::LogicalDependencyList:

Public Member Functions

DUCKDB_API void AddDependency (CatalogEntry &entry)
 
DUCKDB_API void AddDependency (const LogicalDependency &entry)
 
DUCKDB_API bool Contains (CatalogEntry &entry)
 
DUCKDB_API void VerifyDependencies (Catalog &catalog, const string &name)
 
void Serialize (Serializer &serializer) const
 
bool operator== (const LogicalDependencyList &other) const
 
const create_info_set_t & Set () const
 

Static Public Member Functions

static LogicalDependencyList Deserialize (Deserializer &deserializer)
 

Private Types

using create_info_set_t = unordered_set< LogicalDependency, LogicalDependencyHashFunction, LogicalDependencyEquality >
 

Private Attributes

create_info_set_t set
 

Detailed Description

The LogicalDependencyList containing LogicalDependency objects, not looked up in the catalog yet.

Member Function Documentation

◆ AddDependency() [1/2]

void duckdb::LogicalDependencyList::AddDependency ( CatalogEntry entry)
25431 {
25432 LogicalDependency dependency(entry);
25433 set.insert(dependency);
25434}

◆ AddDependency() [2/2]

void duckdb::LogicalDependencyList::AddDependency ( const LogicalDependency entry)
25436 {
25437 set.insert(entry);
25438}

◆ Contains()

bool duckdb::LogicalDependencyList::Contains ( CatalogEntry entry)
25440 {
25441 LogicalDependency logical_entry(entry_p);
25442 return set.count(logical_entry);
25443}

◆ VerifyDependencies()

void duckdb::LogicalDependencyList::VerifyDependencies ( Catalog catalog,
const string &  name 
)
25445 {
25446 for (auto &dep : set) {
25447 if (dep.catalog != catalog.GetName()) {
25448 throw DependencyException(
25449 "Error adding dependency for object \"%s\" - dependency \"%s\" is in catalog "
25450 "\"%s\", which does not match the catalog \"%s\".\nCross catalog dependencies are not supported.",
25451 name, dep.entry.name, dep.catalog, catalog.GetName());
25452 }
25453 }
25454}

◆ operator==()

bool duckdb::LogicalDependencyList::operator== ( const LogicalDependencyList other) const
25460 {
25461 if (set.size() != other.set.size()) {
25462 return false;
25463 }
25464
25465 for (auto &entry : set) {
25466 if (!other.set.count(entry)) {
25467 return false;
25468 }
25469 }
25470 return true;
25471}

◆ Set()

const LogicalDependencyList::create_info_set_t & duckdb::LogicalDependencyList::Set ( ) const
25456 {
25457 return set;
25458}

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