carl  24.04
Computer ARithmetic Library
carl::statistics::Statistics Class Reference

#include <Statistics.h>

Collaboration diagram for carl::statistics::Statistics:

Public Member Functions

 Statistics ()=default
 
virtual ~Statistics ()=default
 
 Statistics (const Statistics &)=delete
 
 Statistics (Statistics &&)=delete
 
Statisticsoperator= (const Statistics &)=delete
 
Statisticsoperator= (Statistics &&)=delete
 
void set_name (const std::string &name)
 
virtual bool enabled () const
 
virtual void collect ()
 
const auto & name () const
 
const auto & collected () const
 

Protected Member Functions

void addKeyValuePair (const std::string &key, const std::string &value)
 
void addKeyValuePair (const std::string &key, Timer &value)
 
void addKeyValuePair (const std::string &key, const Series &value)
 
template<typename T >
void addKeyValuePair (const std::string &key, const MultiCounter< T > &value)
 
template<typename T >
void addKeyValuePair (const std::string &key, const T &value)
 

Private Member Functions

bool has_illegal_chars (const std::string &val) const
 

Private Attributes

std::string mName
 
std::map< std::string, std::string > mCollected
 

Detailed Description

Definition at line 17 of file Statistics.h.

Constructor & Destructor Documentation

◆ Statistics() [1/3]

carl::statistics::Statistics::Statistics ( )
default

◆ ~Statistics()

virtual carl::statistics::Statistics::~Statistics ( )
virtualdefault

◆ Statistics() [2/3]

carl::statistics::Statistics::Statistics ( const Statistics )
delete

◆ Statistics() [3/3]

carl::statistics::Statistics::Statistics ( Statistics &&  )
delete

Member Function Documentation

◆ addKeyValuePair() [1/5]

template<typename T >
void carl::statistics::Statistics::addKeyValuePair ( const std::string &  key,
const MultiCounter< T > &  value 
)
inlineprotected

Definition at line 44 of file Statistics.h.

Here is the call graph for this function:

◆ addKeyValuePair() [2/5]

void carl::statistics::Statistics::addKeyValuePair ( const std::string &  key,
const Series value 
)
inlineprotected

Definition at line 39 of file Statistics.h.

Here is the call graph for this function:

◆ addKeyValuePair() [3/5]

void carl::statistics::Statistics::addKeyValuePair ( const std::string &  key,
const std::string &  value 
)
inlineprotected

Definition at line 27 of file Statistics.h.

Here is the call graph for this function:

◆ addKeyValuePair() [4/5]

template<typename T >
void carl::statistics::Statistics::addKeyValuePair ( const std::string &  key,
const T &  value 
)
inlineprotected

Definition at line 49 of file Statistics.h.

Here is the call graph for this function:

◆ addKeyValuePair() [5/5]

void carl::statistics::Statistics::addKeyValuePair ( const std::string &  key,
Timer value 
)
inlineprotected

Definition at line 35 of file Statistics.h.

Here is the call graph for this function:

◆ collect()

virtual void carl::statistics::Statistics::collect ( )
inlinevirtual

Definition at line 70 of file Statistics.h.

◆ collected()

const auto& carl::statistics::Statistics::collected ( ) const
inline

Definition at line 75 of file Statistics.h.

◆ enabled()

virtual bool carl::statistics::Statistics::enabled ( ) const
inlinevirtual

Definition at line 67 of file Statistics.h.

◆ has_illegal_chars()

bool carl::statistics::Statistics::has_illegal_chars ( const std::string &  val) const
inlineprivate

Definition at line 21 of file Statistics.h.

Here is the caller graph for this function:

◆ name()

const auto& carl::statistics::Statistics::name ( ) const
inline

Definition at line 72 of file Statistics.h.

Here is the caller graph for this function:

◆ operator=() [1/2]

Statistics& carl::statistics::Statistics::operator= ( const Statistics )
delete

◆ operator=() [2/2]

Statistics& carl::statistics::Statistics::operator= ( Statistics &&  )
delete

◆ set_name()

void carl::statistics::Statistics::set_name ( const std::string &  name)
inline

Definition at line 63 of file Statistics.h.

Here is the call graph for this function:

Field Documentation

◆ mCollected

std::map<std::string, std::string> carl::statistics::Statistics::mCollected
private

Definition at line 20 of file Statistics.h.

◆ mName

std::string carl::statistics::Statistics::mName
private

Definition at line 19 of file Statistics.h.


The documentation for this class was generated from the following file: