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

◆ for_each_ancestor()

template<FieldArray Array>
template<typename Fn>
bool MayaFlux::Kakshya::DataForestTraversal< Array >::for_each_ancestor ( size_t row,
Fn && fn ) const
inline

Visit the ancestors of row, nearest first.

Definition at line 133 of file DataForestTraversal.hpp.

134 {
135 for (auto parent = m_index->parent(row); parent; parent = m_index->parent(*parent)) {
136 if (!visit(*parent, fn))
137 return false;
138 }
139 return true;
140 }
On-demand walks over the parent links of an indexed array.

References m_index, and visit().

Here is the call graph for this function: