|
libtcspc C++ API
Streaming TCSPC and time tag data processing
|
Processors that combine events of different types into a variant type and back.
Functions | |
| template<typename Downstream> | |
| auto | tcspc::demultiplex (Downstream downstream) |
| Create a processor that transforms an event variant type back to individual event types. | |
| template<typename EventList, typename Downstream> | |
| auto | tcspc::multiplex (Downstream downstream) |
| Create a processor that passes events as a single variant type. | |
| auto tcspc::demultiplex | ( | Downstream | downstream | ) |
Create a processor that transforms an event variant type back to individual event types.
This reverses the effect of tcspc::multiplex(), accepting tcspc::variant_event and emitting the stored events. Only tcspc::variant_event specializations whose type list is a subset of the events handled by downstream are handled.
| Downstream | downstream processor type |
| downstream | downstream processor |
| auto tcspc::multiplex | ( | Downstream | downstream | ) |
Create a processor that passes events as a single variant type.
This can be used, for example, to buffer more than one type of event in a stream. The emitted events are of the single type tcspc::variant_event<EventList>.
| EventList | event types to combine |
| Downstream | downstream processor type |
| downstream | downstream processor |