ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::core::CPUHashBackendBufferAccessor Class Reference

#include <CPUHashBackendBufferAccessor.hpp>

Collaboration diagram for cloudViewer::core::CPUHashBackendBufferAccessor:

Public Member Functions

 CPUHashBackendBufferAccessor (HashBackendBuffer &hashmap_buffer)
 Must initialize from a non-const buffer to grab the heap top. More...
 
buf_index_t DeviceAllocate ()
 
void DeviceFree (buf_index_t buf_index)
 
void * GetKeyPtr (buf_index_t buf_index)
 
void * GetValuePtr (buf_index_t buf_index, int value_idx=0)
 

Public Attributes

int64_t capacity_
 
int64_t key_dsize_
 
std::vector< int64_t > value_dsizes_
 
buf_index_theap_
 
std::atomic< int > * heap_top_
 
uint8_t * key_buffer_ptr_
 
std::vector< uint8_t * > value_buffer_ptrs_
 

Detailed Description

Definition at line 21 of file CPUHashBackendBufferAccessor.hpp.

Constructor & Destructor Documentation

◆ CPUHashBackendBufferAccessor()

cloudViewer::core::CPUHashBackendBufferAccessor::CPUHashBackendBufferAccessor ( HashBackendBuffer hashmap_buffer)
inline

Member Function Documentation

◆ DeviceAllocate()

buf_index_t cloudViewer::core::CPUHashBackendBufferAccessor::DeviceAllocate ( )
inline

Definition at line 40 of file CPUHashBackendBufferAccessor.hpp.

References heap_.

◆ DeviceFree()

void cloudViewer::core::CPUHashBackendBufferAccessor::DeviceFree ( buf_index_t  buf_index)
inline

Definition at line 41 of file CPUHashBackendBufferAccessor.hpp.

References heap_.

◆ GetKeyPtr()

void* cloudViewer::core::CPUHashBackendBufferAccessor::GetKeyPtr ( buf_index_t  buf_index)
inline

Definition at line 45 of file CPUHashBackendBufferAccessor.hpp.

References key_buffer_ptr_, and key_dsize_.

◆ GetValuePtr()

void* cloudViewer::core::CPUHashBackendBufferAccessor::GetValuePtr ( buf_index_t  buf_index,
int  value_idx = 0 
)
inline

Definition at line 48 of file CPUHashBackendBufferAccessor.hpp.

References value_buffer_ptrs_, and value_dsizes_.

Member Data Documentation

◆ capacity_

int64_t cloudViewer::core::CPUHashBackendBufferAccessor::capacity_

Definition at line 54 of file CPUHashBackendBufferAccessor.hpp.

Referenced by CPUHashBackendBufferAccessor().

◆ heap_

buf_index_t* cloudViewer::core::CPUHashBackendBufferAccessor::heap_

Definition at line 58 of file CPUHashBackendBufferAccessor.hpp.

Referenced by DeviceAllocate(), and DeviceFree().

◆ heap_top_

std::atomic<int>* cloudViewer::core::CPUHashBackendBufferAccessor::heap_top_

Definition at line 59 of file CPUHashBackendBufferAccessor.hpp.

Referenced by CPUHashBackendBufferAccessor().

◆ key_buffer_ptr_

uint8_t* cloudViewer::core::CPUHashBackendBufferAccessor::key_buffer_ptr_

Definition at line 61 of file CPUHashBackendBufferAccessor.hpp.

Referenced by GetKeyPtr().

◆ key_dsize_

int64_t cloudViewer::core::CPUHashBackendBufferAccessor::key_dsize_

Definition at line 55 of file CPUHashBackendBufferAccessor.hpp.

Referenced by GetKeyPtr().

◆ value_buffer_ptrs_

std::vector<uint8_t *> cloudViewer::core::CPUHashBackendBufferAccessor::value_buffer_ptrs_

Definition at line 62 of file CPUHashBackendBufferAccessor.hpp.

Referenced by CPUHashBackendBufferAccessor(), and GetValuePtr().

◆ value_dsizes_

std::vector<int64_t> cloudViewer::core::CPUHashBackendBufferAccessor::value_dsizes_

Definition at line 56 of file CPUHashBackendBufferAccessor.hpp.

Referenced by CPUHashBackendBufferAccessor(), and GetValuePtr().


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