senf::Collector Class Reference

Accumulated statistics collector. More...

#include <senf/Utils/Statistics.hh>

Inheritance diagram for senf::Collector:

Public Member Functions

virtual unsigned rank () const
 Return collectors rank value. More...
 
StatisticsBase::OutputProxy< Collectoroutput (unsigned n=1u)
 
bool updated () const
 
- Public Member Functions inherited from senf::StatisticsBase
StatisticsData data () const
 Get the Statistics data as senf::StatisticsData. More...
 
void consoleList (unsigned level, std::ostream &os) const
 
unsigned cnt () const
 Last cnt value entered. More...
 
float min () const
 Last min value entered. More...
 
float avg () const
 Last avg value entered. More...
 
float max () const
 Last max value entered. More...
 
float dev () const
 Last dev value entered. More...
 
Collectoroperator[] (unsigned rank)
 Get child collector. More...
 
Collector const & operator[] (unsigned rank) const
 Get child collector. More...
 
CollectorRange collectors ()
 List all child collectors. More...
 
const_CollectorRange collectors () const
 List all child collectors. More...
 
Collectorcollect (unsigned rank)
 Register a new collector. More...
 
Statistics const & base () const
 
Statisticsbase ()
 Get base statistics object. More...
 
std::string path () const
 Get the path to this collector. More...
 
OutputProxy< StatisticsBaseoutput (unsigned n=1u)
 Register output. More...
 

Additional Inherited Members

- Public Types inherited from senf::StatisticsBase
typedef boost::iterator_range< ValueIterator > CollectorRange
 
typedef boost::iterator_range< const_ValueIterator > const_CollectorRange
 
- Protected Member Functions inherited from senf::StatisticsBase
 StatisticsBase ()
 
virtual ~StatisticsBase ()
 
void enter (unsigned n, unsigned cnt, float min, float avg, float max, float dev)
 

Detailed Description

Accumulated statistics collector.

This class collects accumulated statistics. It is automatically created by senf::Statistics::collect()

See also
senf::Statistics

Definition at line 512 of file Statistics.hh.

Member Function Documentation

◆ output()

StatisticsBase::OutputProxy<Collector> senf::Collector::output ( unsigned  n = 1u)

◆ rank()

virtual unsigned senf::Collector::rank ( ) const
virtual

Return collectors rank value.

Returns
number of basic values collected into each new value by this collector.

Reimplemented from senf::StatisticsBase.

◆ updated()

bool senf::Collector::updated ( ) const

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