Template Class NdtreeBlockHash
Defined in File ndtree_block_hash.h
Class Documentation
-
template<typename CellDataT, int dim>
class NdtreeBlockHash Public Types
-
using Node = typename Block::NodeType
-
using BlockHashMap = SpatialHash<Block, dim>
-
using IndexType = NdtreeIndex<dim>
-
using HeightType = IndexElement
Public Functions
-
inline explicit NdtreeBlockHash(HeightType max_tree_height, CellDataT default_value = CellDataT{})
-
inline HeightType getMaxHeight() const
-
template<typename IndexedBlockVisitor>
void eraseBlockIf(IndexedBlockVisitor indicator_fn)
-
bool hasNode(const IndexType &index) const
-
bool eraseNode(const IndexType &index)
-
std::pair<Node*, HeightType> getNodeOrAncestor(const IndexType &index)
-
std::pair<const Node*, HeightType> getNodeOrAncestor(const IndexType &index) const
-
bool hasValue(const IndexType &index) const
-
std::pair<CellDataT*, HeightType> getValueOrAncestor(const IndexType &index)
-
std::pair<const CellDataT*, HeightType> getValueOrAncestor(const IndexType &index) const
-
inline const CellDataT &getDefaultValue() const
-
bool equalsDefaultValue(const CellDataT &value) const
-
template<typename IndexedBlockVisitor>
void forEachBlock(IndexedBlockVisitor visitor_fn)
-
template<typename IndexedBlockVisitor>
void forEachBlock(IndexedBlockVisitor visitor_fn) const
-
template<typename IndexedLeafVisitorFunction>
void forEachLeaf(IndexedLeafVisitorFunction visitor_fn)
-
template<typename IndexedLeafVisitorFunction>
void forEachLeaf(IndexedLeafVisitorFunction visitor_fn) const
Public Static Attributes
-
static constexpr IndexElement kDim = dim
-
static constexpr HeightType kChunkHeight = 1
Protected Attributes
-
const HeightType max_height_
-
const CellDataT default_value_
-
BlockHashMap block_map_
-
using Node = typename Block::NodeType