![]() |
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.
|
The DependencyManager is in charge of managing dependencies between catalog entries. More...

Public Member Functions | |
| DependencyManager (DuckCatalog &catalog) | |
| void | Scan (ClientContext &context, const std::function< void(CatalogEntry &, CatalogEntry &, const DependencyDependentFlags &)> &callback) |
| Scans all dependencies, returning pairs of (object, dependent). | |
| void | AddOwnership (CatalogTransaction transaction, CatalogEntry &owner, CatalogEntry &entry) |
| void | ReorderEntries (catalog_entry_vector_t &entries) |
| Get the order of entries needed by EXPORT, the objects with no dependencies are exported first. | |
| void | ReorderEntries (catalog_entry_vector_t &entries, ClientContext &context) |
Static Public Member Functions | |
| static string | GetSchema (const CatalogEntry &entry) |
| static MangledEntryName | MangleName (const CatalogEntryInfo &info) |
| static MangledEntryName | MangleName (const CatalogEntry &entry) |
| static CatalogEntryInfo | GetLookupProperties (const CatalogEntry &entry) |
Private Types | |
| using | dependency_entry_func_t |
| using | dependency_callback_t = const std::function<void(DependencyEntry &)> |
Private Member Functions | |
| bool | IsSystemEntry (CatalogEntry &entry) const |
| optional_ptr< CatalogEntry > | LookupEntry (CatalogTransaction transaction, const LogicalDependency &dependency) |
| optional_ptr< CatalogEntry > | LookupEntry (CatalogTransaction transaction, CatalogEntry &dependency) |
| string | CollectDependents (CatalogTransaction transaction, catalog_entry_set_t &entries, CatalogEntryInfo &info) |
| void | CleanupDependencies (CatalogTransaction transaction, CatalogEntry &entry) |
| void | ReorderEntry (CatalogTransaction transaction, CatalogEntry &entry, catalog_entry_set_t &visited, catalog_entry_vector_t &order) |
| void | ReorderEntries (catalog_entry_vector_t &entries, CatalogTransaction transaction) |
| void | AddObject (CatalogTransaction transaction, CatalogEntry &object, const LogicalDependencyList &dependencies) |
| void | VerifyExistence (CatalogTransaction transaction, DependencyEntry &object) |
| void | VerifyCommitDrop (CatalogTransaction transaction, transaction_t start_time, CatalogEntry &object) |
| catalog_entry_set_t | CheckDropDependencies (CatalogTransaction transaction, CatalogEntry &object, bool cascade) |
| Returns the objects that should be dropped alongside the object. | |
| void | DropObject (CatalogTransaction transaction, CatalogEntry &object, bool cascade) |
| void | AlterObject (CatalogTransaction transaction, CatalogEntry &old_obj, CatalogEntry &new_obj, AlterInfo &info) |
| void | RemoveDependency (CatalogTransaction transaction, const DependencyInfo &info) |
| void | CreateDependency (CatalogTransaction transaction, DependencyInfo &info) |
| void | CreateDependencies (CatalogTransaction transaction, const CatalogEntry &object, const LogicalDependencyList &dependencies) |
| void | CreateSubject (CatalogTransaction transaction, const DependencyInfo &info) |
| void | CreateDependent (CatalogTransaction transaction, const DependencyInfo &info) |
| void | ScanDependents (CatalogTransaction transaction, const CatalogEntryInfo &info, dependency_callback_t &callback) |
| void | ScanSubjects (CatalogTransaction transaction, const CatalogEntryInfo &info, dependency_callback_t &callback) |
| void | ScanSetInternal (CatalogTransaction transaction, const CatalogEntryInfo &info, bool subjects, dependency_callback_t &callback) |
| void | PrintSubjects (CatalogTransaction transaction, const CatalogEntryInfo &info) |
| void | PrintDependents (CatalogTransaction transaction, const CatalogEntryInfo &info) |
| CatalogSet & | Dependents () |
| CatalogSet & | Subjects () |
Private Attributes | |
| DuckCatalog & | catalog |
| CatalogSet | subjects |
| CatalogSet | dependents |
Friends | |
| class | CatalogSet |
The DependencyManager is in charge of managing dependencies between catalog entries.
|
private |
|
explicit |
| void duckdb::DependencyManager::Scan | ( | ClientContext & | context, |
| const std::function< void(CatalogEntry &, CatalogEntry &, const DependencyDependentFlags &)> & | callback ) |
Scans all dependencies, returning pairs of (object, dependent).
| void duckdb::DependencyManager::AddOwnership | ( | CatalogTransaction | transaction, |
| CatalogEntry & | owner, | ||
| CatalogEntry & | entry ) |
| void duckdb::DependencyManager::ReorderEntries | ( | catalog_entry_vector_t & | entries | ) |
Get the order of entries needed by EXPORT, the objects with no dependencies are exported first.


| void duckdb::DependencyManager::ReorderEntries | ( | catalog_entry_vector_t & | entries, |
| ClientContext & | context ) |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Returns the objects that should be dropped alongside the object.

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Add to the list of objects that 'dependent' has a dependency on
|
private |
Add to the list of object that depend on 'subject'
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |