carl  24.04
Computer ARithmetic Library
carl::statistics::MultiCounter< T > Class Template Reference

#include <MultiCounter.h>

Public Member Functions

void inc (const T &key, std::size_t inc)
 
void collect (std::map< std::string, std::string > &data, const std::string &key) const
 

Private Attributes

boost::container::flat_map< T, std::size_t > m_data
 
std::size_t m_total = 0
 

Detailed Description

template<typename T>
class carl::statistics::MultiCounter< T >

Definition at line 8 of file MultiCounter.h.

Member Function Documentation

◆ collect()

template<typename T >
void carl::statistics::MultiCounter< T >::collect ( std::map< std::string, std::string > &  data,
const std::string &  key 
) const
inline

Definition at line 18 of file MultiCounter.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inc()

template<typename T >
void carl::statistics::MultiCounter< T >::inc ( const T &  key,
std::size_t  inc 
)
inline

Definition at line 13 of file MultiCounter.h.

Field Documentation

◆ m_data

template<typename T >
boost::container::flat_map<T,std::size_t> carl::statistics::MultiCounter< T >::m_data
private

Definition at line 9 of file MultiCounter.h.

◆ m_total

template<typename T >
std::size_t carl::statistics::MultiCounter< T >::m_total = 0
private

Definition at line 10 of file MultiCounter.h.


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