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

Public Member Functions

 ChunkReference (ColumnDataCollectionSegment *segment_p, uint32_t chunk_index_p)
uint32_t GetMinimumBlockID () const

Public Attributes

ColumnDataCollectionSegment * segment
uint32_t chunk_index_in_segment

Friends

bool operator< (const ChunkReference &lhs, const ChunkReference &rhs)

Constructor & Destructor Documentation

◆ ChunkReference()

duckdb::ChunkReference::ChunkReference ( ColumnDataCollectionSegment * segment_p,
uint32_t chunk_index_p )
116270 : segment(segment_p), chunk_index_in_segment(chunk_index_p) {
116271}

Member Function Documentation

◆ GetMinimumBlockID()

uint32_t duckdb::ChunkReference::GetMinimumBlockID ( ) const
116273 {
116274 const auto &block_ids = segment->chunk_data[chunk_index_in_segment].block_ids;
116275 return *std::min_element(block_ids.begin(), block_ids.end());
116276}

◆ operator<

bool operator< ( const ChunkReference & lhs,
const ChunkReference & rhs )
friend
116204 {
116205 // Sort by allocator first
116206 if (lhs.segment->allocator.get() != rhs.segment->allocator.get()) {
116207 return lhs.segment->allocator.get() < rhs.segment->allocator.get();
116208 }
116209 // Then by minimum block id
116210 return lhs.GetMinimumBlockID() < rhs.GetMinimumBlockID();
116211 }

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