|
| static const V & | GetValue (const STORAGE_TYPE &slot) |
|
| static bool | Compare (const STORAGE_TYPE &left, const STORAGE_TYPE &right) |
|
|
idx_t | capacity = 0 |
|
idx_t | allocated_capacity = 0 |
|
STORAGE_TYPE * | heap = nullptr |
|
idx_t | size = 0 |
◆ BinaryAggregateHeap()
template<class K, class V, class K_COMPARATOR>
209945 {
209947 }
Definition duckdb.cpp:209939
◆ Initialize()
template<class K, class V, class K_COMPARATOR>
209949 {
209951 allocated_capacity = 0;
209952 heap = nullptr;
209953 size = 0;
209954 }
◆ IsEmpty()
template<class K, class V, class K_COMPARATOR>
209956 {
209957 return size == 0;
209958 }
◆ Size()
template<class K, class V, class K_COMPARATOR>
209959 {
209960 return size;
209961 }
◆ Capacity()
template<class K, class V, class K_COMPARATOR>
209962 {
209963 return capacity;
209964 }
◆ Insert() [1/2]
template<class K, class V, class K_COMPARATOR>
209966 {
209968
209969
209970 if (size < capacity) {
209971 if (size == allocated_capacity) {
209973 }
209976 size++;
209978 }
209979
209980
209986 }
209988 }
◆ Insert() [2/2]
template<class K, class V, class K_COMPARATOR>
209990 {
209993 }
209994 }
◆ SortAndGetHeap()
template<class K, class V, class K_COMPARATOR>
209996 {
209998 return heap;
209999 }
◆ GetValue()
template<class K, class V, class K_COMPARATOR>
210001 {
210002 return slot.second.value;
210003 }
◆ Grow()
template<class K, class V, class K_COMPARATOR>
210006 {
210007 D_ASSERT(allocated_capacity < capacity);
210009 if (allocated_capacity == 0) {
210010 allocated_capacity = 1;
210011 } else if (allocated_capacity > capacity / 2) {
210012 allocated_capacity = capacity;
210013 } else {
210014 allocated_capacity *= 2;
210015 }
210016
210018 const auto new_size = allocated_capacity *
sizeof(STORAGE_TYPE);
210022 heap =
reinterpret_cast<STORAGE_TYPE *
>(
ptr);
210023 }
◆ Compare()
template<class K, class V, class K_COMPARATOR>
The documentation for this class was generated from the following file: