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

#include <StatisticsCollector.h>

Inheritance diagram for carl::statistics::StatisticsCollector:
Collaboration diagram for carl::statistics::StatisticsCollector:

Public Member Functions

template<typename T >
T & get (const std::string &name)
 
void collect ()
 
const auto & statistics () const
 

Static Public Member Functions

static StatisticsCollectorgetInstance ()
 Returns the single instance of this class by reference. More...
 

Private Attributes

std::vector< std::unique_ptr< Statistics > > mStatistics
 

Detailed Description

Definition at line 14 of file StatisticsCollector.h.

Member Function Documentation

◆ collect()

void carl::statistics::StatisticsCollector::collect ( )

Definition at line 8 of file StatisticsCollector.cpp.

◆ get()

template<typename T >
T& carl::statistics::StatisticsCollector::get ( const std::string &  name)
inline

Definition at line 19 of file StatisticsCollector.h.

Here is the caller graph for this function:

◆ getInstance()

static StatisticsCollector & carl::Singleton< StatisticsCollector >::getInstance ( )
inlinestaticinherited

Returns the single instance of this class by reference.

If there is no instance yet, a new one is created.

Definition at line 45 of file Singleton.h.

◆ statistics()

const auto& carl::statistics::StatisticsCollector::statistics ( ) const
inline

Definition at line 27 of file StatisticsCollector.h.

Field Documentation

◆ mStatistics

std::vector<std::unique_ptr<Statistics> > carl::statistics::StatisticsCollector::mStatistics
private

Definition at line 16 of file StatisticsCollector.h.


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