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::IteratorKey Class Reference

Keeps track of the current key in the iterator leading down to the top node in the stack. More...

Collaboration diagram for duckdb::IteratorKey:

Public Member Functions

void Push (const uint8_t key_byte)
 Pushes a byte into the current key.
 
void Pop (const idx_t n)
 Pops n bytes from the current key.
 
uint8_toperator[] (idx_t idx)
 Returns the byte at idx.
 
idx_t Size () const
 
const_data_ptr_t Data () const
 Returns a pointer to the key bytes.
 
bool Contains (const ARTKey &key) const
 Returns true, if key_bytes contains all bytes of key.
 
bool GreaterThan (const ARTKey &key, const bool equal, const uint8_t nested_depth) const
 Returns true, if key_bytes is greater than [or equal to] the key.
 

Private Attributes

unsafe_vector< uint8_tkey_bytes
 

Detailed Description

Keeps track of the current key in the iterator leading down to the top node in the stack.

Member Function Documentation

◆ Push()

void duckdb::IteratorKey::Push ( const uint8_t  key_byte)
inline

Pushes a byte into the current key.

58995 {
58996 key_bytes.push_back(key_byte);
58997 }

◆ Pop()

void duckdb::IteratorKey::Pop ( const idx_t  n)
inline

Pops n bytes from the current key.

58999 {
59000 key_bytes.resize(key_bytes.size() - n);
59001 }

◆ operator[]()

uint8_t & duckdb::IteratorKey::operator[] ( idx_t  idx)
inline

Returns the byte at idx.

59003 {
59004 D_ASSERT(idx < key_bytes.size());
59005 return key_bytes[idx];
59006 }

◆ Size()

idx_t duckdb::IteratorKey::Size ( ) const
inline
59008 {
59009 return key_bytes.size();
59010 }

◆ Data()

const_data_ptr_t duckdb::IteratorKey::Data ( ) const
inline

Returns a pointer to the key bytes.

59012 {
59013 return const_data_ptr_cast(key_bytes.data());
59014 }

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