Template Class NdtreeNode

Class Documentation

template<typename DataT, int dim>
class NdtreeNode

Public Types

using DataType = DataT

Public Functions

NdtreeNode() = default
inline explicit NdtreeNode(DataT data)
~NdtreeNode() = default
bool empty() const
void clear()
bool hasNonzeroData() const
bool hasNonzeroData(FloatingPoint threshold) const
inline DataT &data()
inline const DataT &data() const
inline bool hasChildrenArray() const
inline void deleteChildrenArray()
bool hasChild(NdtreeIndexRelativeChild child_index) const
bool hasAtLeastOneChild() const
template<typename ...NodeConstructorArgs>
NdtreeNode *allocateChild(NdtreeIndexRelativeChild child_index, NodeConstructorArgs&&... args)
bool deleteChild(NdtreeIndexRelativeChild child_index)
NdtreeNode *getChild(NdtreeIndexRelativeChild child_index)
const NdtreeNode *getChild(NdtreeIndexRelativeChild child_index) const
size_t getMemoryUsage() const
template<typename ...NodeConstructorArgs>
NdtreeNode<DataT, dim> *allocateChild(NdtreeIndexRelativeChild child_index, NodeConstructorArgs&&... args)

Public Static Attributes

static constexpr int kNumChildren = NdtreeIndex<dim>::kNumChildren

Friends

inline friend bool operator==(const NdtreeNode &lhs, const NdtreeNode &rhs)