senf::Collector Class Reference

Accumulated statistics collector. More...

#include <senf/Utils/Statistics.hh>

Inheritance diagram for senf::Collector:
Inheritance graph
[legend]

List of all members.


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 500 of file Statistics.hh.


Public Member Functions

virtual unsigned  rank () const
  Return collectors rank value.
StatisticsBase::OutputProxy
< Collector
output (unsigned n=1u)
  Register output.

Member Function Documentation

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

Register output.

This call will request the collector to output statistics build by averaging the last n values. This output is generated for every new value in the collector. The output signal can be connected to an arbitrary target using the returned proxy. Example:

stats.output(4u).connect(
    senf::StatisticsLogger());
Parameters:
[in]  n  size of sliding average window

Reimplemented from senf::StatisticsBase.

Definition at line 155 of file Statistics.cci.

unsigned senf::Collector::
rank ()

Return collectors rank value.

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

Reimplemented from senf::StatisticsBase.

Definition at line 148 of file Statistics.cci.


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