Visitor_Recursive

Visitor_Recursive

Bottom-up visitor, recursive.

Visiting a node calls its methods (provided by the user via inheritance) according to ``tree.data``

Slightly faster than the non-recursive version.

Constructor

new Visitor_Recursive()

Source:

Methods

visit()

Visits the tree, starting with the leaves and finally the root (bottom-up)

Source:

visit()

Visits the tree, starting with the leaves and finally the root (bottom-up)

Source:

visit_topdown()

Visit the tree, starting at the root, and ending at the leaves (top-down)

Source:

visit_topdown()

Visit the tree, starting at the root, and ending at the leaves (top-down)

Source:

Visitor_Recursive

Bottom-up visitor, recursive.

Visiting a node calls its methods (provided by the user via inheritance) according to ``tree.data``

Slightly faster than the non-recursive version.

Constructor

new Visitor_Recursive()

Source:

Methods

visit()

Visits the tree, starting with the leaves and finally the root (bottom-up)

Source:

visit()

Visits the tree, starting with the leaves and finally the root (bottom-up)

Source:

visit_topdown()

Visit the tree, starting at the root, and ending at the leaves (top-down)

Source:

visit_topdown()

Visit the tree, starting at the root, and ending at the leaves (top-down)

Source: