|
|
static constexpr uint8_t | RING_SIZE = ChimpConstants::BUFFER_SIZE |
|
static constexpr uint64_t | LEAST_SIGNIFICANT_BIT_COUNT = SignificantBits<CHIMP_TYPE>::size + 7 + 1 |
|
static constexpr uint64_t | LEAST_SIGNIFICANT_BIT_MASK = (1 << LEAST_SIGNIFICANT_BIT_COUNT) - 1 |
|
static constexpr uint16_t | INDICES_SIZE = 1 << LEAST_SIGNIFICANT_BIT_COUNT |
◆ RingBuffer()
template<class CHIMP_TYPE>
392118 }
uint64_t index
Stores the corresponding values.
Definition duckdb.cpp:392155
◆ Reset()
template<class CHIMP_TYPE>
◆ Insert()
template<class CHIMP_TYPE>
template<bool FIRST = false>
392120 {
392123 }
392126 }
Definition duckdb.cpp:392105
uint64_t indices[INDICES_SIZE]
Keeps track of the index of the current value.
Definition duckdb.cpp:392156
◆ InsertScan()
template<class CHIMP_TYPE>
template<bool FIRST = false>
392128 {
392131 }
392133 }
◆ Top()
template<class CHIMP_TYPE>
392134 {
392135 return buffer[
index % RING_SIZE];
392136 }
◆ IndexOf()
template<class CHIMP_TYPE>
Get the index where values that produce this 'key' are stored.
◆ Value()
template<class CHIMP_TYPE>
Get the value at position 'index' of the buffer.
◆ Size()
template<class CHIMP_TYPE>
Get the amount of values that are inserted.
◆ Key()
template<class CHIMP_TYPE>
392149 {
392150 return value & LEAST_SIGNIFICANT_BIT_MASK;
392151 }
◆ buffer
template<class CHIMP_TYPE>
◆ indices
template<class CHIMP_TYPE>
Keeps track of the index of the current value.
The documentation for this class was generated from the following file: