#include <openvdb/util/PagedArray.h>
◆ PagedArrayType
◆ ValueBuffer() [1/2]
Constructor from a PageArray.
◆ ValueBuffer() [2/2]
- Warning
- This copy-constructor is shallow in the sense that no elements are copied, i.e. size = 0.
◆ ~ValueBuffer()
Destructor that transfers an buffered values to the parent PagedArray.
◆ flush()
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.
◆ operator=()
◆ pageSize()
static size_t pageSize |
( |
| ) |
|
|
inlinestatic |
◆ parent()
◆ push_back()
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.
◆ size()
Return the current number of elements cached in this buffer.