libtcspc.SinkEvents¶
- final class libtcspc.SinkEvents(*event_types)[source]¶
Bases:
NodeSink that accepts and discards a fixed set of event types.
Most useful for testing, or for asserting at graph-build time that an upstream subgraph only produces a known set of event types — any other event type connected to this sink is rejected at graph build time.
- Parameters:
*event_types (EventType) – The only event types the sink will accept.
Notes
Events handled:
Events matching one of
event_types: ignored.Events not in
event_types: rejected at graph build time.End of input: ignored.
See also
- tcspc::sink_events()
The underlying C++ factory function.