|
libtcspc C++ API
Streaming TCSPC and time tag data processing
|
Routers for use with tcspc::route() and tcspc::route_homogeneous().
These objects define the member auto operator()(Event const &event) const -> std::size_t, where Event const & must be implicitly convertible from every event type routed by the processor. In general-purpose routers, Event is often a template parameter of the operator()().
The interface described above is captured by the tcspc::router_for concept.
The return value is the index of the downstream processor to which the event should be routed. If the index is out of range, the event is discarded. Routers can return std::numeric_limits<std::size_t>::max() when the event should be discarded.
Concepts | |
| concept | tcspc::router_for |
Concept that is satisfied when R conforms to the libtcspc router interface for event types Events. | |
Classes | |
| class | tcspc::channel_router< N, NumericTraits > |
| Router that routes by channel number. More... | |
| class | tcspc::null_router |
| Router that does not route. More... | |