#include <nanovdb/HostBuffer.h>
|
| Pool (uint64_t size=0, void *data=nullptr) |
| External memory ctor.
|
|
| ~Pool () |
| Custom destructor.
|
|
| Pool (const Pool &)=delete |
| Disallow copy-construction.
|
|
| Pool (const Pool &&)=delete |
| Disallow move-construction.
|
|
Pool & | operator= (const Pool &)=delete |
| Disallow copy assignment operation.
|
|
Pool & | operator= (const Pool &&)=delete |
| Disallow move assignment operation.
|
|
uint64_t | usage () const |
| Return the total number of bytes used from this Pool by buffers.
|
|
void | add (HostBuffer *buffer, uint64_t size) |
| Allocate a buffer of the specified size and add it to the register.
|
|
void | remove (HostBuffer *buffer) |
| Remove the specified buffer from the register.
|
|
void | replace (HostBuffer *buffer1, HostBuffer *buffer2) |
| Replaces buffer1 with buffer2 in the register.
|
|
void | reset () |
| Reset the register and all its buffers.
|
|
void | resize (uint64_t size, void *data=nullptr) |
| Resize this Pool and update registered buffers as needed. If data is no NULL it is used as externally managed memory.
|
|
bool | isFull () const |
| Return true is all the memory in this pool is in use.
|
|
◆ HashTableT
◆ Pool() [1/3]
Pool |
( |
uint64_t | size = 0, |
|
|
void * | data = nullptr ) |
|
inline |
◆ ~Pool()
◆ Pool() [2/3]
Disallow copy-construction.
◆ Pool() [3/3]
Disallow move-construction.
◆ add()
Allocate a buffer of the specified size and add it to the register.
◆ isFull()
Return true is all the memory in this pool is in use.
◆ operator=() [1/2]
Disallow move assignment operation.
◆ operator=() [2/2]
Disallow copy assignment operation.
◆ remove()
Remove the specified buffer from the register.
◆ replace()
Replaces buffer1 with buffer2 in the register.
◆ reset()
Reset the register and all its buffers.
◆ resize()
void resize |
( |
uint64_t | size, |
|
|
void * | data = nullptr ) |
|
inline |
Resize this Pool and update registered buffers as needed. If data is no NULL it is used as externally managed memory.
◆ usage()
Return the total number of bytes used from this Pool by buffers.
◆ mData
◆ mFree
◆ mManaged
◆ mMutex
◆ mPadding
◆ mRegister
◆ mSize