libtcspc.MatchAndConsume¶
- final class libtcspc.MatchAndConsume(event_type, out_event_type, matcher)[source]¶
Bases:
NodeProcessor that emits an output event for each matched event, consuming matches.
Like
Match, but matched events are not passed through (consumed); only unmatched events ofevent_typeand other events pass through.- Parameters:
Notes
Events handled:
event_typematched by the matcher: emit anout_event_typeconstructed from the matched event’sabstime; the matched event is consumed (not passed through).All other input events (including unmatched
event_type): pass through unchanged.End of input: pass through.
See also
- tcspc::match_and_consume()
The underlying C++ factory function.
MatchLike
MatchAndConsume, but matched events are also passed through.