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::VectorArrayBuffer Class Reference
Inheritance diagram for duckdb::VectorArrayBuffer:
Collaboration diagram for duckdb::VectorArrayBuffer:

Public Member Functions

 VectorArrayBuffer (unique_ptr< Vector > child_vector, idx_t array_size, idx_t initial_capacity)
 VectorArrayBuffer (const LogicalType &array, idx_t initial=STANDARD_VECTOR_SIZE)
Vector & GetChild ()
idx_t GetArraySize ()
idx_t GetChildSize ()
Public Member Functions inherited from duckdb::VectorBuffer
 VectorBuffer (VectorBufferType type)
 VectorBuffer (idx_t data_size)
 VectorBuffer (AllocatedData &&data_p)
data_ptr_t GetData ()
void SetData (AllocatedData &&new_data)
VectorAuxiliaryData * GetAuxiliaryData ()
void SetAuxiliaryData (unique_ptr< VectorAuxiliaryData > aux_data_p)
void MoveAuxiliaryData (VectorBuffer &source_buffer)
virtual optional_ptr< Allocator > GetAllocator () const
VectorBufferType GetBufferType () const
VectorAuxiliaryDataType GetAuxiliaryDataType () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Private Attributes

unique_ptr< Vector > child
idx_t array_size = 0
idx_t size = 0

Additional Inherited Members

Static Public Member Functions inherited from duckdb::VectorBuffer
static buffer_ptr< VectorBuffer > CreateStandardVector (PhysicalType type, idx_t capacity=STANDARD_VECTOR_SIZE)
static buffer_ptr< VectorBuffer > CreateConstantVector (PhysicalType type)
static buffer_ptr< VectorBuffer > CreateConstantVector (const LogicalType &logical_type)
static buffer_ptr< VectorBuffer > CreateStandardVector (const LogicalType &logical_type, idx_t capacity=STANDARD_VECTOR_SIZE)
Protected Attributes inherited from duckdb::VectorBuffer
VectorBufferType buffer_type
unique_ptr< VectorAuxiliaryData > aux_data
AllocatedData data

Constructor & Destructor Documentation

◆ VectorArrayBuffer() [1/2]

duckdb::VectorArrayBuffer::VectorArrayBuffer ( unique_ptr< Vector > child_vector,
idx_t array_size,
idx_t initial_capacity )
explicit
138816 : VectorBuffer(VectorBufferType::ARRAY_BUFFER), child(std::move(child_vector)), array_size(array_size),
138817 size(initial_capacity) {
138818 D_ASSERT(array_size != 0);
138819}

◆ VectorArrayBuffer() [2/2]

duckdb::VectorArrayBuffer::VectorArrayBuffer ( const LogicalType & array,
idx_t initial = STANDARD_VECTOR_SIZE )
explicit
138822 : VectorBuffer(VectorBufferType::ARRAY_BUFFER),
138823 child(make_uniq<Vector>(ArrayType::GetChildType(array), initial * ArrayType::GetSize(array))),
138824 array_size(ArrayType::GetSize(array)), size(initial) {
138825 // initialize the child array with (array_size * size) ^
138826 D_ASSERT(!ArrayType::IsAnySize(array));
138827}

◆ ~VectorArrayBuffer()

duckdb::VectorArrayBuffer::~VectorArrayBuffer ( )
override
138829 {
138830}

Member Function Documentation

◆ GetChild()

Vector & duckdb::VectorArrayBuffer::GetChild ( )
138832 {
138833 return *child;
138834}

◆ GetArraySize()

idx_t duckdb::VectorArrayBuffer::GetArraySize ( )
138836 {
138837 return array_size;
138838}

◆ GetChildSize()

idx_t duckdb::VectorArrayBuffer::GetChildSize ( )
138840 {
138841 return size * array_size;
138842}

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