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::roaring::ContainerSegmentScan Struct Reference

Public Member Functions

 ContainerSegmentScan (data_ptr_t data)
 ContainerSegmentScan (const ContainerSegmentScan &other)=delete
 ContainerSegmentScan (ContainerSegmentScan &&other)=delete
ContainerSegmentScan & operator= (const ContainerSegmentScan &other)=delete
ContainerSegmentScan & operator= (ContainerSegmentScan &&other)=delete
uint16_t operator++ (int)

Private Attributes

uint8_t * segments
uint8_t index
uint8_t count

Constructor & Destructor Documentation

◆ ContainerSegmentScan()

duckdb::roaring::ContainerSegmentScan::ContainerSegmentScan ( data_ptr_t data)
explicit
405276 : segments(reinterpret_cast<uint8_t *>(data)), index(0), count(0) {
405277}
::uint8_t uint8_t
uint8_t * segments
Definition duckdb.cpp:403516

Member Function Documentation

◆ operator++()

uint16_t duckdb::roaring::ContainerSegmentScan::operator++ ( int )
405280 {
405281 while (index < COMPRESSED_SEGMENT_COUNT && count >= segments[index]) {
405282 count = 0;
405283 index++;
405284 }
405285 count++;
405286
405287 // index == COMPRESSED_SEGMENT_COUNT is allowed for runs, as the last run could end at ROARING_CONTAINER_SIZE
405288 D_ASSERT(index <= COMPRESSED_SEGMENT_COUNT);
405289 if (index < COMPRESSED_SEGMENT_COUNT) {
405290 D_ASSERT(segments[index] != 0);
405291 }
405292 uint16_t base = static_cast<uint16_t>(index) * COMPRESSED_SEGMENT_SIZE;
405293 return base;
405294}
::uint16_t uint16_t

Member Data Documentation

◆ segments

uint8_t* duckdb::roaring::ContainerSegmentScan::segments
private

The COMPRESSED_SEGMENT_COUNT unsigned bytes indicating for each segment (256 bytes) of the container how many values are in the segment


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