|
| | NodeManagerHandle (BufferT &&buffer) |
| | Move constructor from a buffer.
|
| |
| | NodeManagerHandle ()=default |
| | Empty ctor.
|
| |
| | NodeManagerHandle (const NodeManagerHandle &)=delete |
| | Disallow copy-construction.
|
| |
| NodeManagerHandle & | operator= (const NodeManagerHandle &)=delete |
| | Disallow copy assignment operation.
|
| |
| NodeManagerHandle & | operator= (NodeManagerHandle &&other) noexcept |
| | Move copy assignment operation.
|
| |
| | NodeManagerHandle (NodeManagerHandle &&other) noexcept |
| | Move copy-constructor.
|
| |
| | ~NodeManagerHandle () |
| | Default destructor.
|
| |
| void | reset () |
| | clear the buffer
|
| |
| BufferT & | buffer () |
| | Return a reference to the buffer.
|
| |
| const BufferT & | buffer () const |
| | Return a const reference to the buffer.
|
| |
| uint8_t * | data () |
| | Returns a non-const pointer to the data.
|
| |
| const uint8_t * | data () const |
| | Returns a const pointer to the data.
|
| |
| uint64_t | size () const |
| | Returns the size in bytes of the raw memory buffer managed by this NodeManagerHandle's allocator.
|
| |
| template<typename BuildT > |
| const NodeManager< BuildT > * | mgr () const |
| | Returns a const pointer to the NodeManager encoded in this NodeManagerHandle.
|
| |
| template<typename BuildT > |
| NodeManager< BuildT > * | mgr () |
| | Returns a pointer to the NodeManager encoded in this NodeManagerHandle.
|
| |
| template<typename BuildT , typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, constNodeManager< BuildT > * >::type | deviceMgr () const |
| | Return a const pointer to the NodeManager encoded in this NodeManagerHandle on the device, e.g. GPU.
|
| |
| template<typename BuildT , typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, NodeManager< BuildT > * >::type | deviceMgr () |
| | Return a const pointer to the NodeManager encoded in this NodeManagerHandle on the device, e.g. GPU.
|
| |
| template<typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, void >::type | deviceUpload (void *deviceGrid, void *stream=nullptr, bool sync=true) |
| | Upload the NodeManager to the device, e.g. from CPU to GPU.
|
| |
| template<typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, void >::type | deviceDownload (void *stream=nullptr, bool sync=true) |
| | Download the NodeManager to from the device, e.g. from GPU to CPU.
|
| |
template<typename BufferT>
class nanovdb::NodeManagerHandle< BufferT >
NodeManagerHandle manages the memory of a NodeManager.
This class serves to manage a raw memory buffer of a NanoVDB NodeManager or LeafManager.