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::TableIndexIterationHelper< T >::TableIndexIterator Class Reference
Collaboration diagram for duckdb::TableIndexIterationHelper< T >::TableIndexIterator:

Public Member Functions

 TableIndexIterator (optional_ptr< const vector< unique_ptr< IndexEntry > > > index_entries)
TableIndexIterator & operator++ ()
bool operator!= (const TableIndexIterator &other) const
T & operator* () const
IndexEntry & operator* () const
Index & operator* () const
IndexEntry & operator* () const
Index & operator* () const

Public Attributes

optional_ptr< const vector< unique_ptr< IndexEntry > > > index_entries
optional_idx index

Constructor & Destructor Documentation

◆ TableIndexIterator()

template<class T>
duckdb::TableIndexIterationHelper< T >::TableIndexIterator::TableIndexIterator ( optional_ptr< const vector< unique_ptr< IndexEntry > > > index_entries)
explicit
442271 : index_entries(index_entries_p) {
442272 if (index_entries) {
442273 if (index_entries->empty()) {
442274 index_entries = nullptr;
442275 } else {
442276 index = 0;
442277 }
442278 }
442279}
Definition duckdb.hpp:50309

Member Function Documentation

◆ operator++()

template<class T>
TableIndexIterationHelper< T >::TableIndexIterator & duckdb::TableIndexIterationHelper< T >::TableIndexIterator::operator++ ( )
442283 {
442284 if (index_entries) {
442285 auto next_index = index.GetIndex() + 1;
442286 if (next_index >= index_entries->size()) {
442287 // reached the end
442288 index = optional_idx();
442289 index_entries = nullptr;
442290 } else {
442291 // next index
442292 index = next_index;
442293 }
442294 }
442295 return *this;
442296}

◆ operator!=()

template<class T>
bool duckdb::TableIndexIterationHelper< T >::TableIndexIterator::operator!= ( const TableIndexIterator & other) const
442299 {
442300 return index != other.index || index_entries != other.index_entries;
442301}

◆ operator*() [1/2]

442304 {
442305 return *index_entries->at(index.GetIndex());
442306}

◆ operator*() [2/2]

442309 {
442310 return *index_entries->at(index.GetIndex())->index;
442311}

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