Visitor

Visitor

Tree visitor, non-recursive (can handle huge trees).

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

Constructor

new Visitor()

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

Tree visitor, non-recursive (can handle huge trees).

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

Constructor

new Visitor()

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: