| 1 | # Data::Hopen::Visitor - abstract interface for a visitor. | ||
| 2 | package Data::Hopen::Visitor; | ||
| 3 | use strict; | ||
| 4 | use Data::Hopen::Base; | ||
| 5 | |||
| 6 | our $VERSION = '0.000018'; | ||
| 7 | |||
| 8 | use Class::Tiny; | ||
| 9 | |||
| 10 | # Docs {{{1 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Data::Hopen::Visitor - Abstract base class for DAG visitors | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | This is an abstract base class for visitors provided to | ||
| 19 | L<Data::Hopen::G::Dag/run>. | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | # }}}1 | ||
| 24 | |||
| 25 | =head1 FUNCTIONS | ||
| 26 | |||
| 27 | =head2 visit_goal | ||
| 28 | |||
| 29 | Process a L<Data::Hopen::G::Goal>. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | sub visit_goal { ... } | ||
| 34 | |||
| 35 | =head2 visit_node | ||
| 36 | |||
| 37 | Process a graph node that is not a C<Data::Hopen::G::Goal>. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | sub visit_node { ... } | ||
| 42 | |||
| 43 | 1; | ||
| 44 | __END__ |