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

Public Member Functions

 UnifiedVectorFormat (const UnifiedVectorFormat &other)=delete
UnifiedVectorFormat & operator= (const UnifiedVectorFormat &)=delete
DUCKDB_API UnifiedVectorFormat (UnifiedVectorFormat &&other) noexcept
 enable move constructors
DUCKDB_API UnifiedVectorFormat & operator= (UnifiedVectorFormat &&) noexcept
template<class T>
void VerifyVectorType () const
template<class T>
const T * GetData () const

Static Public Member Functions

template<class T>
static const T * GetDataUnsafe (const UnifiedVectorFormat &format)
template<class T>
static const T * GetData (const UnifiedVectorFormat &format)
template<class T>
static T * GetDataNoConst (UnifiedVectorFormat &format)

Public Attributes

const SelectionVector * sel
data_ptr_t data
ValidityMask validity
SelectionVector owned_sel
PhysicalType physical_type

Constructor & Destructor Documentation

◆ UnifiedVectorFormat() [1/2]

duckdb::UnifiedVectorFormat::UnifiedVectorFormat ( )
135713 : sel(nullptr), data(nullptr), physical_type(PhysicalType::INVALID) {
135714}

◆ UnifiedVectorFormat() [2/2]

duckdb::UnifiedVectorFormat::UnifiedVectorFormat ( UnifiedVectorFormat && other)
noexcept

enable move constructors

135717 : sel(nullptr), data(nullptr), physical_type(PhysicalType::INVALID) {
135718 bool refers_to_self = other.sel == &other.owned_sel;
135719 std::swap(sel, other.sel);
135720 std::swap(data, other.data);
135721 std::swap(validity, other.validity);
135722 std::swap(owned_sel, other.owned_sel);
135723 std::swap(physical_type, other.physical_type);
135724 if (refers_to_self) {
135725 sel = &owned_sel;
135726 }
135727}

Member Function Documentation

◆ operator=()

UnifiedVectorFormat & duckdb::UnifiedVectorFormat::operator= ( UnifiedVectorFormat && other)
noexcept
135729 {
135730 bool refers_to_self = other.sel == &other.owned_sel;
135731 std::swap(sel, other.sel);
135732 std::swap(data, other.data);
135733 std::swap(validity, other.validity);
135734 std::swap(owned_sel, other.owned_sel);
135735 std::swap(physical_type, other.physical_type);
135736 if (refers_to_self) {
135737 sel = &owned_sel;
135738 }
135739 return *this;
135740}

◆ VerifyVectorType()

template<class T>
void duckdb::UnifiedVectorFormat::VerifyVectorType ( ) const
inline
10509 {
10510#ifdef DUCKDB_DEBUG_NO_SAFETY
10511 D_ASSERT(StorageTypeCompatible<T>(physical_type));
10512#else
10513 if (!StorageTypeCompatible<T>(physical_type)) {
10514 throw InternalException("Expected unified vector format of type %s, but found type %s", GetTypeId<T>(),
10515 physical_type);
10516 }
10517#endif
10518 }
PhysicalType GetTypeId()
Returns the PhysicalType for the given type.
Definition duckdb.hpp:10381

◆ GetDataUnsafe()

template<class T>
const T * duckdb::UnifiedVectorFormat::GetDataUnsafe ( const UnifiedVectorFormat & format)
inlinestatic
10521 {
10522 return reinterpret_cast<const T *>(format.data);
10523 }
std::basic_string< Char > format(const S &format_str, Args &&... args)
Definition duckdb.cpp:16295

◆ GetData() [1/2]

template<class T>
const T * duckdb::UnifiedVectorFormat::GetData ( const UnifiedVectorFormat & format)
inlinestatic
10525 {
10526 return format.GetData<T>();
10527 }

◆ GetData() [2/2]

template<class T>
const T * duckdb::UnifiedVectorFormat::GetData ( ) const
inline
10529 {
10530 VerifyVectorType<T>();
10531 return GetDataUnsafe<T>(*this);
10532 }

◆ GetDataNoConst()

template<class T>
T * duckdb::UnifiedVectorFormat::GetDataNoConst ( UnifiedVectorFormat & format)
inlinestatic
10534 {
10535 format.VerifyVectorType<T>();
10536 return reinterpret_cast<T *>(format.data);
10537 }

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