Subgraph.PostHook

Post-hook callback delegate.

This callback is invoked on every successfully commited node. Its first argument is a pointer matching one of the nodes inserted in this subgraph. However, that node's contents have since been moved into the graph, so it can no longer be safely used as a concrete node type. The second argument is a pointer to the corresponding in-graph node.

Holding onto these pointers is not safe, much less mutating them. In fact, the only thing users can do in the post-hook is to use the first argument to choose whether or not to call Graph methods on the second argument.

struct Subgraph
@nogc nothrow
alias PostHook = void delegate
(
const(Node)*
,
const(Node)*
)
@nogc nothrow