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

Static Public Member Functions

template<class T >
static void VerifyVectorType (const Vector &vector)
 
static const_data_ptr_t GetData (const Vector &vector)
 
static data_ptr_t GetData (Vector &vector)
 
template<class T >
static const T * GetDataUnsafe (const Vector &vector)
 
template<class T >
static T * GetDataUnsafe (Vector &vector)
 
template<class T >
static const T * GetData (const Vector &vector)
 
template<class T >
static T * GetData (Vector &vector)
 
static bool IsNull (const Vector &vector)
 
static DUCKDB_API void SetNull (Vector &vector, bool is_null)
 
static ValidityMaskValidity (Vector &vector)
 
static DUCKDB_API const SelectionVectorZeroSelectionVector (idx_t count, SelectionVector &owned_sel)
 
static DUCKDB_API const SelectionVectorZeroSelectionVector ()
 
static DUCKDB_API void Reference (Vector &vector, Vector &source, idx_t position, idx_t count)
 Turns "vector" into a constant vector by referencing a value within the source vector.
 

Static Public Attributes

static const sel_t ZERO_VECTOR [STANDARD_VECTOR_SIZE]
 

Member Function Documentation

◆ VerifyVectorType()

template<class T >
static void duckdb::ConstantVector::VerifyVectorType ( const Vector vector)
inlinestatic
10797 {
10798#ifdef DUCKDB_DEBUG_NO_SAFETY
10799 D_ASSERT(StorageTypeCompatible<T>(vector.GetType().InternalType()));
10800#else
10801 if (!StorageTypeCompatible<T>(vector.GetType().InternalType())) {
10802 throw InternalException("Expected vector of type %s, but found vector of type %s", GetTypeId<T>(),
10803 vector.GetType().InternalType());
10804 }
10805#endif
10806 }

◆ GetData() [1/4]

static const_data_ptr_t duckdb::ConstantVector::GetData ( const Vector vector)
inlinestatic
10808 {
10809 D_ASSERT(vector.GetVectorType() == VectorType::CONSTANT_VECTOR ||
10810 vector.GetVectorType() == VectorType::FLAT_VECTOR);
10811 return vector.data;
10812 }

◆ GetData() [2/4]

static data_ptr_t duckdb::ConstantVector::GetData ( Vector vector)
inlinestatic
10813 {
10814 D_ASSERT(vector.GetVectorType() == VectorType::CONSTANT_VECTOR ||
10815 vector.GetVectorType() == VectorType::FLAT_VECTOR);
10816 return vector.data;
10817 }

◆ GetDataUnsafe() [1/2]

template<class T >
static const T * duckdb::ConstantVector::GetDataUnsafe ( const Vector vector)
inlinestatic
10819 {
10820 return reinterpret_cast<const T *>(GetData(vector));
10821 }

◆ GetDataUnsafe() [2/2]

template<class T >
static T * duckdb::ConstantVector::GetDataUnsafe ( Vector vector)
inlinestatic
10823 {
10824 return reinterpret_cast<T *>(GetData(vector));
10825 }

◆ GetData() [3/4]

template<class T >
static const T * duckdb::ConstantVector::GetData ( const Vector vector)
inlinestatic
10827 {
10828 VerifyVectorType<T>(vector);
10829 return GetDataUnsafe<T>(vector);
10830 }

◆ GetData() [4/4]

template<class T >
static T * duckdb::ConstantVector::GetData ( Vector vector)
inlinestatic
10832 {
10833 VerifyVectorType<T>(vector);
10834 return GetDataUnsafe<T>(vector);
10835 }

◆ IsNull()

static bool duckdb::ConstantVector::IsNull ( const Vector vector)
inlinestatic
10836 {
10837 D_ASSERT(vector.GetVectorType() == VectorType::CONSTANT_VECTOR);
10838 return !vector.validity.RowIsValid(0);
10839 }

◆ Validity()

static ValidityMask & duckdb::ConstantVector::Validity ( Vector vector)
inlinestatic
10841 {
10842 D_ASSERT(vector.GetVectorType() == VectorType::CONSTANT_VECTOR);
10843 return vector.validity;
10844 }

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