accept

The accept function that act as a nodes accept method in the Visitor pattern.

The visitor must implement the implAccept function that correctly visits the nodes children.

The algorithm to use when visiting the children is left to the visitor.

This separates the visitor algorithm (breadth-first/depth-first) from the structural architect.

void
accept
(
NodeT
SelfT
)
(
ref NodeT node
,
ref SelfT self
)

Meta