MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ children()

std::span< const uint64_t > MayaFlux::Kakshya::ForestIndex::children ( size_t row) const
nodiscardnoexcept

Direct children in row order; empty for a leaf or an out of range row.

Definition at line 69 of file ForestIndex.cpp.

70{
71 if (row >= m_parent.size())
72 return {};
73 const uint64_t begin = m_child_offset[row];
74 return { m_child_row.data() + begin, static_cast<size_t>(m_child_offset[row + 1] - begin) };
75}
std::vector< uint64_t > m_child_row
std::vector< uint64_t > m_parent
std::vector< uint64_t > m_child_offset

References m_child_offset, m_child_row, and m_parent.