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::Chimp128CompressionState< CHIMP_TYPE, EMPTY > Struct Template Reference

Public Member Functions

void SetLeadingZeros (int32_t value=NumericLimits< uint8_t >::Maximum())
void Flush ()
void Reset ()
CHIMP_TYPE BitsWritten () const

Public Attributes

OutputBitStream< EMPTY > output
LeadingZeroBuffer< EMPTY > leading_zero_buffer
FlagBuffer< EMPTY > flag_buffer
PackedDataBuffer< EMPTY > packed_data_buffer
RingBuffer< CHIMP_TYPE > ring_buffer
uint8_t previous_leading_zeros
 The ring buffer that holds the previous values.
CHIMP_TYPE previous_value = 0
 The leading zeros of the reference value.
bool first = true

Constructor & Destructor Documentation

◆ Chimp128CompressionState()

template<class CHIMP_TYPE, bool EMPTY>
duckdb::Chimp128CompressionState< CHIMP_TYPE, EMPTY >::Chimp128CompressionState ( )
inline
397022 previous_value = 0;
397023 }
Definition duckdb.cpp:397020
CHIMP_TYPE previous_value
The leading zeros of the reference value.
Definition duckdb.cpp:397055
uint8_t previous_leading_zeros
The ring buffer that holds the previous values.
Definition duckdb.cpp:397054

Member Function Documentation

◆ SetLeadingZeros()

template<class CHIMP_TYPE, bool EMPTY>
void duckdb::Chimp128CompressionState< CHIMP_TYPE, EMPTY >::SetLeadingZeros ( int32_t value = NumericLimits<uint8_t>::Maximum())
inline
397025 {
397027 }

◆ Flush()

template<class CHIMP_TYPE, bool EMPTY>
void duckdb::Chimp128CompressionState< CHIMP_TYPE, EMPTY >::Flush ( )
inline
397029 {
397030 leading_zero_buffer.Flush();
397031 }

◆ Reset()

template<class CHIMP_TYPE, bool EMPTY>
void duckdb::Chimp128CompressionState< CHIMP_TYPE, EMPTY >::Reset ( )
inline
397034 {
397035 first = true;
397036 ring_buffer.Reset();
397037 SetLeadingZeros();
397038 leading_zero_buffer.Reset();
397039 flag_buffer.Reset();
397040 packed_data_buffer.Reset();
397041 previous_value = 0;
397042 }

◆ BitsWritten()

template<class CHIMP_TYPE, bool EMPTY>
CHIMP_TYPE duckdb::Chimp128CompressionState< CHIMP_TYPE, EMPTY >::BitsWritten ( ) const
inline
397044 {
397045 return output.BitsWritten() + leading_zero_buffer.BitsWritten() + flag_buffer.BitsWritten() +
397046 (packed_data_buffer.index * 16);
397047 }

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