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::MapCastInfo Struct Reference
Inheritance diagram for duckdb::MapCastInfo:
Collaboration diagram for duckdb::MapCastInfo:

Public Member Functions

const optional_ptr< MapCastNode > GetEntry (const LogicalType &source, const LogicalType &target)
void AddEntry (const LogicalType &source, const LogicalType &target, MapCastNode node)
Public Member Functions inherited from duckdb::BindCastInfo
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Private Attributes

type_id_map_t< type_map_t< type_id_map_t< type_map_t< MapCastNode > > > > casts

Member Function Documentation

◆ GetEntry()

const optional_ptr< MapCastNode > duckdb::MapCastInfo::GetEntry ( const LogicalType & source,
const LogicalType & target )
inline
213202 {
213203 auto source_type_id_entry = casts.find(source.id());
213204 if (source_type_id_entry == casts.end()) {
213205 source_type_id_entry = casts.find(LogicalTypeId::ANY);
213206 if (source_type_id_entry == casts.end()) {
213207 return nullptr;
213208 }
213209 }
213210
213211 auto &source_type_entries = source_type_id_entry->second;
213212 auto source_type_entry = source_type_entries.find(source);
213213 if (source_type_entry == source_type_entries.end()) {
213214 source_type_entry = RelaxedTypeMatch(source_type_entries, source);
213215 if (source_type_entry == source_type_entries.end()) {
213216 return nullptr;
213217 }
213218 }
213219
213220 auto &target_type_id_entries = source_type_entry->second;
213221 auto target_type_id_entry = target_type_id_entries.find(target.id());
213222 if (target_type_id_entry == target_type_id_entries.end()) {
213223 target_type_id_entry = target_type_id_entries.find(LogicalTypeId::ANY);
213224 if (target_type_id_entry == target_type_id_entries.end()) {
213225 return nullptr;
213226 }
213227 }
213228
213229 auto &target_type_entries = target_type_id_entry->second;
213230 auto target_type_entry = target_type_entries.find(target);
213231 if (target_type_entry == target_type_entries.end()) {
213232 target_type_entry = RelaxedTypeMatch(target_type_entries, target);
213233 if (target_type_entry == target_type_entries.end()) {
213234 return nullptr;
213235 }
213236 }
213237
213238 return &target_type_entry->second;
213239 }

◆ AddEntry()

void duckdb::MapCastInfo::AddEntry ( const LogicalType & source,
const LogicalType & target,
MapCastNode node )
inline
213241 {
213242 casts[source.id()][source][target.id()].insert(make_pair(target, std::move(node)));
213243 }

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