15 namespace statistics {
22 return std::find_if(val.begin(), val.end(), [](
char c) {
23 return c ==
':' || c ==
'(' || c ==
')' || std::isspace(static_cast<unsigned char>(c));
30 assert(!
has_illegal_chars(
static_cast<std::string
>(value)) &&
"spaces, (, ), : are not allowed here");
carl is the main namespace for the library.
void serialize(std::stringstream &ss, const std::pair< T, S > &pair)
void collect(std::map< std::string, std::string > &data, const std::string &key) const
void collect(std::map< std::string, std::string > &data, const std::string &key) const
Statistics(const Statistics &)=delete
void addKeyValuePair(const std::string &key, const T &value)
Statistics & operator=(const Statistics &)=delete
virtual ~Statistics()=default
void addKeyValuePair(const std::string &key, const MultiCounter< T > &value)
void addKeyValuePair(const std::string &key, const std::string &value)
void set_name(const std::string &name)
void addKeyValuePair(const std::string &key, Timer &value)
std::map< std::string, std::string > mCollected
void addKeyValuePair(const std::string &key, const Series &value)
Statistics & operator=(Statistics &&)=delete
virtual bool enabled() const
bool has_illegal_chars(const std::string &val) const
const auto & name() const
Statistics(Statistics &&)=delete
const auto & collected() const
void collect(std::map< std::string, std::string > &data, const std::string &key)