47 m_fragment_kind(fragment_kind)
Specialized class that (at a light weight) represents a printable Stat_set-member name,...
Stat_name(String_view fragment={})
Constructs a Stat_name that represents only a name fragment with no reference to another Stat_name.
void to_ostream(std::ostream &os) const
On-demand evaluation: os << this->str() but faster.
const String_view m_fragment
Second part, if any, of the concatenation in str(), interpreted according to m_fragment_kind.
std::string str() const
On-demand evaluation: Returns the full name – all fragments, from the root on, each rendered per its ...
const Fragment_kind m_fragment_kind
How to render m_fragment.
void append_to(std::string *target) const
On-demand evaluation: *target += this->str() but faster.
const Stat_name *const m_base
First part, if any, of the concatenation in str().
Fragment_kind
How a fragment of text is rendered into the name.
@ S_MEMBER_ID
The fragment is a data member identifier (e.g., m_msg_count or m_rcv.m_n_transmitted) and is rendered...
std::string value_set_member_id_to_opt_name(util::String_view member_id, char sep_replacement='-')
Utility, used by FLOW_CFG_OPTION_SET_DECLARE_OPTION() internally but made available as a public API i...
Sub-module of flow::util providing lightweight facilities for working with simple structs of stat cou...
Basic_string_view< char > String_view
Commonly used char-based Basic_string_view. See its doc header.