|View source on GitHub
Base class establishing interface for restarting the tree state.
RestartIndicator maintains a state, and each time
next is called, a bool
value is generated to indicate whether to restart, and the indicator state is
Makes an initialized state for
|An initial state.
next( state )
Gets next bool indicator and advances the
|The current state.
|A pair (value, new_state) where value is bool indicator and new_state is the advanced state.