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

◆ visit()

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

Definition at line 189 of file DataForestTraversal.hpp.

190 {
191 const auto element = m_array->at(row);
192 if (!element)
193 return true;
195 return std::invoke(fn, row, *element);
196 } else {
198 return true;
199 }
200 }
auto element(size_t row) const
Borrow one element by row.
On-demand walks over the parent links of an indexed array.

References element(), and m_array.

Referenced by for_each_ancestor(), for_each_child(), for_each_descendant(), and for_each_root().

Here is the call graph for this function:
Here is the caller graph for this function: