Matcher is a sequence that is used to drive a
. An input sequence is fed into an FSMD and the
output of the state machine is presented as another sequence.
| Responsibilities || Collaborations
| Feed an input sequence into a state machine. |
| Extract the output of a state machine as a sequence. |
| Inform the state machine when the end of the input sequence is reached. |
| Sink output from the state machine. |
| Accept flush commands from the state machine, indicating that a sequence of outputs is complete. |
<> The input data element type.
<> The output data element type.
- Rupert Smith
Holds the state machine to drive.
Holds the input sequence to feed to the state machine.
Holds a buffer to sink state machine output into.
Set when the state machine indicates its output is ready.
Builds the sequence driver for a state machine.
source The input data source.
fsm The state machine.
Accepts an output source to be polled until empty and presented as the output, before consuming more inputs.
source The output source to flush.
Presents this filterator as an iterable.
- This filterator as an iterable.