HDK
|
#include <PagedArray.h>
Public Types | |
using | PagedArrayType = PagedArray< ValueT, Log2PageSize > |
Public Member Functions | |
ValueBuffer (PagedArray &parent) | |
Constructor from a PageArray. More... | |
ValueBuffer (const ValueBuffer &other) | |
~ValueBuffer () | |
Destructor that transfers an buffered values to the parent PagedArray. More... | |
ValueBuffer & | operator= (const ValueBuffer &)=delete |
void | push_back (const ValueT &v) |
Add a value to the buffer and increment the size. More... | |
void | flush () |
Manually transfers the values in this buffer to the parent PagedArray. More... | |
PagedArrayType & | parent () const |
Return a reference to the parent PagedArray. More... | |
size_t | size () const |
Return the current number of elements cached in this buffer. More... | |
Static Public Member Functions | |
static size_t | pageSize () |
Definition at line 539 of file PagedArray.h.
using openvdb::OPENVDB_VERSION_NAME::util::PagedArray< ValueT, Log2PageSize >::ValueBuffer::PagedArrayType = PagedArray<ValueT, Log2PageSize> |
Definition at line 543 of file PagedArray.h.
|
inline |
Constructor from a PageArray.
Definition at line 545 of file PagedArray.h.
|
inline |
Definition at line 548 of file PagedArray.h.
|
inline |
Destructor that transfers an buffered values to the parent PagedArray.
Definition at line 550 of file PagedArray.h.
|
inline |
Manually transfers the values in this buffer to the parent PagedArray.
Definition at line 567 of file PagedArray.h.
|
delete |
|
inlinestatic |
Definition at line 576 of file PagedArray.h.
|
inline |
Return a reference to the parent PagedArray.
Definition at line 573 of file PagedArray.h.
|
inline |
Add a value to the buffer and increment the size.
If the internal memory page is full it will automaically flush the page to the parent PagedArray.
Definition at line 558 of file PagedArray.h.
|
inline |
Return the current number of elements cached in this buffer.
Definition at line 575 of file PagedArray.h.