Open3D (C++ API)  0.16.1
Data Structures | Public Member Functions | Protected Attributes
open3d::core::HashBackendBuffer Class Reference

#include <HashBackendBuffer.h>

Data Structures

struct  HeapTop
 

Public Member Functions

 HashBackendBuffer (int64_t capacity, int64_t key_dsize, std::vector< int64_t > value_dsizes, const Device &device)
 
void ResetHeap ()
 Reset the heap and heap top. More...
 
Device GetDevice () const
 Return device of the buffer. More...
 
int64_t GetCapacity () const
 Return capacity of the buffer. More...
 
int64_t GetKeyDsize () const
 Return key's data size in bytes. More...
 
std::vector< int64_t > GetValueDsizes () const
 Return value's data sizes in bytes. More...
 
int64_t GetCommonBlockSize () const
 Get the common block size divisor of all values types. More...
 
std::vector< int64_t > GetValueBlocksPerElement () const
 Return value's data sizes in the unit of common block size divisor. More...
 
Tensor GetIndexHeap () const
 Return the index heap tensor. More...
 
HeapTop & GetHeapTop ()
 
int GetHeapTopIndex () const
 Return the current heap top. More...
 
Tensor GetKeyBuffer () const
 Return the key buffer tensor. More...
 
std::vector< Tensor > GetValueBuffers () const
 Return the value buffer tensors. More...
 
Tensor GetValueBuffer (size_t i=0) const
 Return the selected value buffer tensor at index i. More...
 

Protected Attributes

Tensor heap_
 
HeapTop heap_top_
 
Tensor key_buffer_
 
std::vector< Tensor > value_buffers_
 
int64_t common_block_size_
 
std::vector< int64_t > blocks_per_element_
 

Constructor & Destructor Documentation

◆ HashBackendBuffer()

open3d::core::HashBackendBuffer::HashBackendBuffer ( int64_t  capacity,
int64_t  key_dsize,
std::vector< int64_t >  value_dsizes,
const Device &  device 
)

Member Function Documentation

◆ GetCapacity()

int64_t open3d::core::HashBackendBuffer::GetCapacity ( ) const

Return capacity of the buffer.

◆ GetCommonBlockSize()

int64_t open3d::core::HashBackendBuffer::GetCommonBlockSize ( ) const

Get the common block size divisor of all values types.

◆ GetDevice()

Device open3d::core::HashBackendBuffer::GetDevice ( ) const

Return device of the buffer.

◆ GetHeapTop()

HashBackendBuffer::HeapTop & open3d::core::HashBackendBuffer::GetHeapTop ( )

Return the heap top structure. To be dispatched accordingly in C++/CUDA accessors.

◆ GetHeapTopIndex()

int open3d::core::HashBackendBuffer::GetHeapTopIndex ( ) const

Return the current heap top.

◆ GetIndexHeap()

Tensor open3d::core::HashBackendBuffer::GetIndexHeap ( ) const

Return the index heap tensor.

◆ GetKeyBuffer()

Tensor open3d::core::HashBackendBuffer::GetKeyBuffer ( ) const

Return the key buffer tensor.

◆ GetKeyDsize()

int64_t open3d::core::HashBackendBuffer::GetKeyDsize ( ) const

Return key's data size in bytes.

◆ GetValueBlocksPerElement()

std::vector< int64_t > open3d::core::HashBackendBuffer::GetValueBlocksPerElement ( ) const

Return value's data sizes in the unit of common block size divisor.

◆ GetValueBuffer()

Tensor open3d::core::HashBackendBuffer::GetValueBuffer ( size_t  i = 0) const

Return the selected value buffer tensor at index i.

◆ GetValueBuffers()

std::vector< Tensor > open3d::core::HashBackendBuffer::GetValueBuffers ( ) const

Return the value buffer tensors.

◆ GetValueDsizes()

std::vector< int64_t > open3d::core::HashBackendBuffer::GetValueDsizes ( ) const

Return value's data sizes in bytes.

◆ ResetHeap()

void open3d::core::HashBackendBuffer::ResetHeap ( )

Reset the heap and heap top.

Field Documentation

◆ blocks_per_element_

std::vector<int64_t> open3d::core::HashBackendBuffer::blocks_per_element_
protected

◆ common_block_size_

int64_t open3d::core::HashBackendBuffer::common_block_size_
protected

◆ heap_

Tensor open3d::core::HashBackendBuffer::heap_
protected

◆ heap_top_

HeapTop open3d::core::HashBackendBuffer::heap_top_
protected

◆ key_buffer_

Tensor open3d::core::HashBackendBuffer::key_buffer_
protected

◆ value_buffers_

std::vector<Tensor> open3d::core::HashBackendBuffer::value_buffers_
protected

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