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

Public Member Functions

 VectorStructBuffer (const LogicalType &struct_type, idx_t capacity=STANDARD_VECTOR_SIZE)
 VectorStructBuffer (Vector &other, const SelectionVector &sel, idx_t count)
const vector< unique_ptr< Vector > > & GetChildren () const
vector< unique_ptr< Vector > > & GetChildren ()
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

vector< unique_ptr< Vector > > children
 child vectors used for nested data

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

◆ VectorStructBuffer() [1/3]

duckdb::VectorStructBuffer::VectorStructBuffer ( )
138736 : VectorBuffer(VectorBufferType::STRUCT_BUFFER) {
138737}

◆ VectorStructBuffer() [2/3]

duckdb::VectorStructBuffer::VectorStructBuffer ( const LogicalType & struct_type,
idx_t capacity = STANDARD_VECTOR_SIZE )
explicit
138740 : VectorBuffer(VectorBufferType::STRUCT_BUFFER) {
138741 auto &child_types = StructType::GetChildTypes(type);
138742 for (auto &child_type : child_types) {
138743 auto vector = make_uniq<Vector>(child_type.second, capacity);
138744 children.push_back(std::move(vector));
138745 }
138746}
vector< unique_ptr< Vector > > children
child vectors used for nested data
Definition duckdb.hpp:10222

◆ VectorStructBuffer() [3/3]

duckdb::VectorStructBuffer::VectorStructBuffer ( Vector & other,
const SelectionVector & sel,
idx_t count )
138749 : VectorBuffer(VectorBufferType::STRUCT_BUFFER) {
138750 auto &other_vector = StructVector::GetEntries(other);
138751 for (auto &child_vector : other_vector) {
138752 auto vector = make_uniq<Vector>(*child_vector, sel, count);
138753 children.push_back(std::move(vector));
138754 }
138755}

◆ ~VectorStructBuffer()

duckdb::VectorStructBuffer::~VectorStructBuffer ( )
override
138757 {
138758}

Member Function Documentation

◆ GetChildren() [1/2]

const vector< unique_ptr< Vector > > & duckdb::VectorStructBuffer::GetChildren ( ) const
inline
10213 {
10214 return children;
10215 }

◆ GetChildren() [2/2]

vector< unique_ptr< Vector > > & duckdb::VectorStructBuffer::GetChildren ( )
inline
10216 {
10217 return children;
10218 }

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