#include <openvdb/util/PagedArray.h>
Constructor from a PageArray.
- Warning
- This copy-constructor is shallow in the sense that no elements are copied, i.e. size = 0.
Destructor that transfers an buffered values to the parent PagedArray.
Manually transfers the values in this buffer to the parent PagedArray.
- Note
- This method is also called by the destructor and push_back so it should only be called if one manually wants to sync up the buffer with the array, e.g. during debugging.
static size_t pageSize |
( |
| ) |
|
|
inlinestatic |
void push_back |
( |
const ValueT & |
v | ) |
|
|
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.
Return the current number of elements cached in this buffer.