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::ContainerMetadataCollectionScanner Struct Reference
Collaboration diagram for duckdb::roaring::ContainerMetadataCollectionScanner:

Public Member Functions

 ContainerMetadataCollectionScanner (ContainerMetadataCollection &collection)
ContainerMetadata GetNext ()

Public Attributes

const ContainerMetadataCollection & collection
idx_t array_idx = 0
idx_t run_idx = 0
idx_t idx = 0

Constructor & Destructor Documentation

◆ ContainerMetadataCollectionScanner()

duckdb::roaring::ContainerMetadataCollectionScanner::ContainerMetadataCollectionScanner ( ContainerMetadataCollection & collection)
explicit
405234 : collection(collection) {
405235}

Member Function Documentation

◆ GetNext()

ContainerMetadata duckdb::roaring::ContainerMetadataCollectionScanner::GetNext ( )
405237 {
405238 D_ASSERT(idx < collection.count_in_segment);
405239 auto type = collection.container_type[idx++];
405240 const bool is_inverted = (type & 1) == 1;
405241 const bool is_run = ((type >> 1) & 1) == 1;
405242 uint8_t amount;
405243 if (is_run) {
405244 amount = collection.number_of_runs[run_idx++];
405245 } else {
405246 amount = collection.cardinality[array_idx++];
405247 }
405248 if (is_run) {
405249 return ContainerMetadata::RunContainer(amount);
405250 }
405251 if (amount == BITSET_CONTAINER_SENTINEL_VALUE) {
405252 return ContainerMetadata::BitsetContainer(amount);
405253 }
405254 return ContainerMetadata::ArrayContainer(amount, is_inverted);
405255}
::uint8_t uint8_t

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