Template Class NdtreeNode

Class Documentation

template<typename DataT, int dim>
class NdtreeNode

Public Types

using DataType = DataT

Public Functions

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

Public Static Attributes

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

Friends

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