OpenVDB 11.0.0
|
#include <openvdb/util/PagedArray.h>
Public Types | |
using | PagedArrayType = PagedArray<ValueT, Log2PageSize> |
Public Member Functions | |
ValueBuffer (PagedArray &parent) | |
Constructor from a PageArray. | |
ValueBuffer (const ValueBuffer &other) | |
~ValueBuffer () | |
Destructor that transfers an buffered values to the parent PagedArray. | |
ValueBuffer & | operator= (const ValueBuffer &)=delete |
void | push_back (const ValueT &v) |
Add a value to the buffer and increment the size. | |
void | flush () |
Manually transfers the values in this buffer to the parent PagedArray. | |
PagedArrayType & | parent () const |
Return a reference to the parent PagedArray. | |
size_t | size () const |
Return the current number of elements cached in this buffer. | |
Static Public Member Functions | |
static size_t | pageSize () |
using PagedArrayType = PagedArray<ValueT, Log2PageSize> |
|
inline |
Constructor from a PageArray.
|
inline |
|
inline |
Destructor that transfers an buffered values to the parent PagedArray.
|
inline |
Manually transfers the values in this buffer to the parent PagedArray.
|
delete |
|
inlinestatic |
|
inline |
Return a reference to the parent PagedArray.
|
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.
|
inline |
Return the current number of elements cached in this buffer.