Function sequant::eval::detail::epoch_depth

Function Documentation

inline std::size_t sequant::eval::detail::epoch_depth(TableCell const &c)

The length of the prefix of c's scope path that ends at the loop instance whose advance re-produces c: the deepest enclosing instance c is bound to (bound_instances), or its innermost enclosing loop when the cell is produced on every batch of it (not produce_if_absent). 0 for a cell no loop re-produces (a leaf, or a cell bound to none of its enclosing loops and produced on first visit only). This is the scope CellRegistry::clear_bound_to empties the cell on.