Field3D
|
Checks if all the values in the SparseBlock are equal. Used by SparseField::releaseBlocks(). More...
#include <SparseField.h>
Public Member Functions | |
bool | check (const SparseBlock< Data_T > &block, Data_T &retEmptyValue, const V3i &validSize, const V3i &blockSize) |
Checks whether a given block can be released. It's safe to assume that the block is allocated if this functor is called. More... | |
Checks if all the values in the SparseBlock are equal. Used by SparseField::releaseBlocks().
Definition at line 697 of file SparseField.h.
|
inline |
Checks whether a given block can be released. It's safe to assume that the block is allocated if this functor is called.
block | Reference to the block to check |
retEmptyValue | If the block is to be removed, store the "empty value" that replaces it in this variable |
validSize | Number of voxels per dim within field data window |
blockSize | Number of voxels actually allocated per dim |
Definition at line 707 of file SparseField.h.
References Sparse::SparseBlock< Data_T >::data, and match().