TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TreeUtils Namespace Reference

Concepts

concept  TreeRowLike
 A flat tree row: the caller sets depth and isOpen; RebuildTreeIndex derives the rest.

Functions

template<TreeRowLike Row>
void RebuildTreeIndex (std::vector< Row > &rows)
 Recomputes the derived fields (skipCount, ancestorLineMask, isLastSibling) from each row's depth.
template<TreeRowLike Row>
int ReorderTreeRow (std::vector< Row > &rows, int srcDs, int dstDs, tachyon::TreeDropPosition pos)
 Moves the subtree rooted at flat index srcDs to pos relative to row dstDs, shifting depths when the target depth differs; Inside/InsideLast open the target.