|
libtcspc C++ API
Streaming TCSPC and time tag data processing
|
Processors for collecting statistics.
Functions | |
| template<typename Event, typename Downstream> | |
| auto | tcspc::count (access_tracker< count_access > &&tracker, Downstream downstream) |
| Create a processor that counts events of a given type. | |
| auto tcspc::count | ( | access_tracker< count_access > && | tracker, |
| Downstream | downstream ) |
Create a processor that counts events of a given type.
The count can be retrieved through a tcspc::count_access retrieved from the tcspc::context from which tracker was obtained.
Note that the count is incremented before the events of type Event are sent to the downstream processor. This means that the event will be counted even if it subsequently results in an error or end-of-stream in a downstream processor.
| Event | type of event to count |
| Downstream | downstream processor type (usually deduced) |
| tracker | access tracker for later access of the count result |
| downstream | downstream processor |