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::PatasGroupState< EXACT_TYPE > Struct Template Reference
Collaboration diagram for duckdb::PatasGroupState< EXACT_TYPE >:

Public Member Functions

void Init (uint8_t *data)
idx_t BytesRead () const
void Reset ()
void LoadPackedData (uint16_t *packed_data, idx_t count)
template<bool SKIP = false>
void Scan (uint8_t *dest, idx_t count)
template<bool SKIP>
void LoadValues (EXACT_TYPE *value_buffer, idx_t count)

Public Attributes

idx_t index
PatasUnpackedValueStats unpacked_data [PatasPrimitives::PATAS_GROUP_SIZE]
EXACT_TYPE values [PatasPrimitives::PATAS_GROUP_SIZE]

Private Attributes

ByteReader byte_reader

Member Function Documentation

◆ Init()

template<class EXACT_TYPE>
void duckdb::PatasGroupState< EXACT_TYPE >::Init ( uint8_t * data)
inline
402169 {
402170 byte_reader.SetStream(data);
402171 }
Definition duckdb.cpp:402167

◆ BytesRead()

template<class EXACT_TYPE>
idx_t duckdb::PatasGroupState< EXACT_TYPE >::BytesRead ( ) const
inline
402173 {
402174 return byte_reader.Index();
402175 }

◆ Reset()

template<class EXACT_TYPE>
void duckdb::PatasGroupState< EXACT_TYPE >::Reset ( )
inline
402177 {
402178 index = 0;
402179 }

◆ LoadPackedData()

template<class EXACT_TYPE>
void duckdb::PatasGroupState< EXACT_TYPE >::LoadPackedData ( uint16_t * packed_data,
idx_t count )
inline
402181 {
402182 for (idx_t i = 0; i < count; i++) {
402183 auto &unpacked = unpacked_data[i];
402185 }
402186 }

◆ Scan()

template<class EXACT_TYPE>
template<bool SKIP = false>
void duckdb::PatasGroupState< EXACT_TYPE >::Scan ( uint8_t * dest,
idx_t count )
inline
402189 {
402190 if (!SKIP) {
402191 memcpy(dest, (void *)(values + index), sizeof(EXACT_TYPE) * count);
402192 }
402193 index += count;
402194 }

◆ LoadValues()

template<class EXACT_TYPE>
template<bool SKIP>
void duckdb::PatasGroupState< EXACT_TYPE >::LoadValues ( EXACT_TYPE * value_buffer,
idx_t count )
inline
402197 {
402198 if (SKIP) {
402199 return;
402200 }
402201 value_buffer[0] = (EXACT_TYPE)0;
402202 for (idx_t i = 0; i < count; i++) {
402204 byte_reader, unpacked_data[i].significant_bytes, unpacked_data[i].trailing_zeros,
402205 value_buffer[i - unpacked_data[i].index_diff]);
402206 }
402207 }

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