 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
25 :
capacity_(hashmap_buffer.GetCapacity()),
31 for (
size_t i = 0; i < value_buffers.size(); ++i) {
32 void *value_buffer_ptr = value_buffers[i].GetDataPtr();
35 static_cast<uint8_t *
>(value_buffer_ptr));
42 heap_[(*heap_top_).fetch_sub(1) - 1] = buf_index;
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
std::vector< Tensor > GetValueBuffers() const
Return the value buffer tensors.
Definition: HashBackendBuffer.cpp:112
void * GetKeyPtr(buf_index_t buf_index)
Definition: CPUHashBackendBufferAccessor.hpp:45
HeapTop & GetHeapTop()
Definition: HashBackendBuffer.cpp:99
int64_t GetLength() const
Definition: Tensor.h:1125
Definition: CPUHashBackendBufferAccessor.hpp:21
Definition: HashBackendBuffer.h:46
CPUHashBackendBufferAccessor(HashBackendBuffer &hashmap_buffer)
Must initialize from a non-const buffer to grab the heap top.
Definition: CPUHashBackendBufferAccessor.hpp:24
uint8_t * key_buffer_ptr_
Definition: CPUHashBackendBufferAccessor.hpp:61
int64_t capacity_
Definition: CPUHashBackendBufferAccessor.hpp:54
void DeviceFree(buf_index_t buf_index)
Definition: CPUHashBackendBufferAccessor.hpp:41
void CPUResetHeap(Tensor &heap)
Definition: CPUHashBackendBuffer.cpp:14
int64_t key_dsize_
Definition: CPUHashBackendBufferAccessor.hpp:55
std::vector< int64_t > value_dsizes_
Definition: CPUHashBackendBufferAccessor.hpp:56
void * GetValuePtr(buf_index_t buf_index, int value_idx=0)
Definition: CPUHashBackendBufferAccessor.hpp:48
std::vector< uint8_t * > value_buffer_ptrs_
Definition: CPUHashBackendBufferAccessor.hpp:62
std::atomic< int > * heap_top_
Definition: CPUHashBackendBufferAccessor.hpp:59
uint32_t buf_index_t
Definition: HashBackendBuffer.h:44
buf_index_t * heap_
Definition: CPUHashBackendBufferAccessor.hpp:58
buf_index_t DeviceAllocate()
Definition: CPUHashBackendBufferAccessor.hpp:40
std::atomic< int > cpu
Definition: HashBackendBuffer.h:50
T * GetDataPtr()
Definition: Tensor.h:1144