|
|
| HeapEntry (const HeapEntry &other)=delete |
|
HeapEntry & | operator= (const HeapEntry &other)=delete |
| | HeapEntry (HeapEntry &&other) noexcept |
| HeapEntry & | operator= (HeapEntry &&other) noexcept |
| void | Assign (ArenaAllocator &allocator, const string_t &new_val) |
◆ HeapEntry() [1/2]
209800 : value(), capacity(0), allocated_data(nullptr) {
209801 }
◆ HeapEntry() [2/2]
209808 {
209809 if (
other.value.IsInlined()) {
209810 value =
other.value;
209811 capacity = 0;
209812 allocated_data = nullptr;
209813 } else {
209814 capacity =
other.capacity;
209815 allocated_data =
other.allocated_data;
209817 other.allocated_data =
nullptr;
209818 }
209819 }
Definition duckdb.cpp:209785
◆ operator=()
209821 {
209822 if (
other.value.IsInlined()) {
209823 value =
other.value;
209824 } else {
209825 capacity =
other.capacity;
209826 allocated_data =
other.allocated_data;
209828 other.allocated_data =
nullptr;
209829 }
209830 return *this;
209831 }
◆ Assign()
209833 {
209836 return;
209837 }
209838
209839
209840 if (allocated_data == nullptr) {
209845 }
209847 allocated_data =
allocator.Allocate(capacity);
209850 return;
209851 }
209852
209853
209854 if (capacity <
new_val.GetSize()) {
209856 capacity *= 2;
209857 while (capacity <
new_val.GetSize()) {
209858 capacity *= 2;
209859 }
209861 }
209865 }
The documentation for this struct was generated from the following file: