Template Function sequant::detail::visit

Function Documentation

template<TreeTraversal order, typename Node, typename Visitor, typename NodeType>
void sequant::detail::visit(Node &&node, Visitor &&f, NodeType)

Visit a full binary node.

Template Parameters:
  • Order – The kinds of tree traversals the visitor shall be notified about

  • V – Visitor type. Must be invocable with a FullBinaryNode<T> argument. Optionally, can take a second argument of type TreeTraversal which indicates the context of the visitor invocation. Can optionally return a value convertible to bool to indicate whether subtree exploration for the current node shall proceed.

  • NodeType – The type of nodes to be visited. Can be VisitInternal, VisitLeaf, or VisitAll.

Parameters:
  • node – Node to visit.

  • f – Visitor.