|
Flow-IPC 3.0.0
Flow-IPC project: Full implementation reference.
|
Stats-related sub-namespace, for ADL segregation and general organization. More...
Classes | |
| struct | Blob_rcv_stats |
| Cumulative stats from the incoming-direction (receive) pipe of a Blob_receiver or Native_handle_receiver concept implementation. More... | |
| struct | Blob_snd_stats |
| Cumulative stats from the outgoing-direction (send) pipe of a Blob_sender or Native_handle_sender concept implementation. More... | |
Functions | |
| const Blob_snd_stats & | blob_snd_stats (const Blob_snd_stats &stats) |
Maps a stats struct type to its core Blob_snd_stats; identity for Blob_snd_stats itself. More... | |
| const Blob_rcv_stats & | blob_rcv_stats (const Blob_rcv_stats &stats) |
Maps a stats struct type to its core Blob_rcv_stats; identity for Blob_rcv_stats itself. More... | |
| template<typename Visitor > | |
| void | declare_stats (const flow::util::stat::Stat_name &name_prefix, const Blob_snd_stats *src_stats, Blob_snd_stats *target_stats, Visitor &&visitor) |
| Declares the stats for Blob_snd_stats. More... | |
| template<typename Stats_t > | |
| Blob_snd_stats & | blob_snd_stats_mutable (Stats_t &stats) |
Non-const wrapper around blob_snd_stats(). More... | |
| template<typename Visitor > | |
| void | declare_stats (const flow::util::stat::Stat_name &name_prefix, const Blob_rcv_stats *src_stats, Blob_rcv_stats *target_stats, Visitor &&visitor) |
| Declares the stats for Blob_rcv_stats. More... | |
| template<typename Stats_t > | |
| Blob_rcv_stats & | blob_rcv_stats_mutable (Stats_t &stats) |
Non-const wrapper around blob_rcv_stats(). More... | |
Stats-related sub-namespace, for ADL segregation and general organization.
| const Blob_rcv_stats & ipc::transport::stat::blob_rcv_stats | ( | const Blob_rcv_stats & | stats | ) |
Maps a stats struct type to its core Blob_rcv_stats; identity for Blob_rcv_stats itself.
See Blob_receiver::Blob_rcv_stats and Native_handle_receiver::Native_handle_rcv_stats concept doc headers for context. Both concepts require this same function (the core receive-stats type is shared).
Generic use with proper ADL (let Cool_receiver be a Blob_receiver or Native_handle_receiver impl instance).
| stats | Thing. |
stats. Definition at line 67 of file blob_transport_stats.cpp.
Referenced by blob_rcv_stats_mutable().
| Blob_rcv_stats & ipc::transport::stat::blob_rcv_stats_mutable | ( | Stats_t & | stats | ) |
Non-const wrapper around blob_rcv_stats().
Safe because the input is non-const, so the const_cast merely undoes the const added by delegating to the const overload.
| Stats_t | Blob_rcv_stats, or an extended stats type with a blob_rcv_stats(const Stats_t&) ADL overload. |
| stats | Stats to map. |
const. Definition at line 197 of file blob_transport_stats.hpp.
References blob_rcv_stats().
| const Blob_snd_stats & ipc::transport::stat::blob_snd_stats | ( | const Blob_snd_stats & | stats | ) |
Maps a stats struct type to its core Blob_snd_stats; identity for Blob_snd_stats itself.
See Blob_sender::Blob_snd_stats and Native_handle_sender::Native_handle_snd_stats concept doc headers for context. Both concepts require this same function (the core send-stats type is shared).
Generic use with proper ADL (let Cool_sender be a Blob_sender or Native_handle_sender impl instance).
| stats | Thing. |
stats. Definition at line 56 of file blob_transport_stats.cpp.
Referenced by blob_snd_stats_mutable().
| Blob_snd_stats & ipc::transport::stat::blob_snd_stats_mutable | ( | Stats_t & | stats | ) |
Non-const wrapper around blob_snd_stats().
Safe because the input is non-const, so the const_cast merely undoes the const added by delegating to the const overload.
| Stats_t | Blob_snd_stats, or an extended stats type with a blob_snd_stats(const Stats_t&) ADL overload. |
| stats | Stats to map. |
const. Definition at line 121 of file blob_transport_stats.hpp.
References blob_snd_stats().
| void ipc::transport::stat::declare_stats | ( | const flow::util::stat::Stat_name & | name_prefix, |
| const Blob_rcv_stats * | src_stats, | ||
| Blob_rcv_stats * | target_stats, | ||
| Visitor && | visitor | ||
| ) |
Declares the stats for Blob_rcv_stats.
Not invoked directly except by flow::util::stat internals, or when composing this stat-set into another.
flow::util::stat namespace doc header for background on the declare/visit mechanism.| Visitor | See above. |
| name_prefix | See above. |
| src_stats | See above. |
| target_stats | See above. |
| visitor | See above. |
Definition at line 183 of file blob_transport_stats.hpp.
| void ipc::transport::stat::declare_stats | ( | const flow::util::stat::Stat_name & | name_prefix, |
| const Blob_snd_stats * | src_stats, | ||
| Blob_snd_stats * | target_stats, | ||
| Visitor && | visitor | ||
| ) |
Declares the stats for Blob_snd_stats.
Not invoked directly except by flow::util::stat internals, or when composing this stat-set into another.
flow::util::stat namespace doc header for background on the declare/visit mechanism.| Visitor | See above. |
| name_prefix | See above. |
| src_stats | See above. |
| target_stats | See above. |
| visitor | See above. |
Definition at line 105 of file blob_transport_stats.hpp.