The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
Stat.h File Reference
#include <GaudiKernel/IStatSvc.h>
#include <GaudiKernel/SmartIF.h>
#include <GaudiKernel/StatEntity.h>
#include <iostream>
#include <string>
Include dependency graph for Stat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Stat
 Small wrapper class for easy manipulation with generic counters and IStatSvc interface. More...
 

Functions

GAUDI_API Stat operator+ (const Stat &stat, const double value)
 external operator for addition of Stat and a number
 
GAUDI_API Stat operator- (const Stat &stat, const double value)
 external operator for subtraction of Stat and a number
 
GAUDI_API Stat operator+ (const double value, const Stat &stat)
 external operator for addition of Stat and a number
 
GAUDI_API Stat operator+ (const Stat &stat, const Stat &value)
 external operator for addition of Stat and Stat
 
GAUDI_API std::ostream & operator<< (std::ostream &stream, const Stat &stat)
 external printout operator to std::ostream
 

Function Documentation

◆ operator+() [1/3]

GAUDI_API Stat operator+ ( const double value,
const Stat & stat )

external operator for addition of Stat and a number

Definition at line 81 of file Stat.cpp.

81 {
82 Stat s( stat );
83 s += value;
84 return s;
85}
Small wrapper class for easy manipulation with generic counters and IStatSvc interface.
Definition Stat.h:48

◆ operator+() [2/3]

GAUDI_API Stat operator+ ( const Stat & stat,
const double value )

external operator for addition of Stat and a number

Definition at line 69 of file Stat.cpp.

69 {
70 Stat s( stat );
71 s += value;
72 return s;
73}

◆ operator+() [3/3]

GAUDI_API Stat operator+ ( const Stat & stat,
const Stat & value )

external operator for addition of Stat and Stat

Definition at line 87 of file Stat.cpp.

87 {
88 Stat s( stat );
89 s += value;
90 return s;
91}

◆ operator-()

GAUDI_API Stat operator- ( const Stat & stat,
const double value )

external operator for subtraction of Stat and a number

Definition at line 75 of file Stat.cpp.

75 {
76 Stat s( stat );
77 s -= value;
78 return s;
79}

◆ operator<<()

GAUDI_API std::ostream & operator<< ( std::ostream & stream,
const Stat & stat )

external printout operator to std::ostream

Definition at line 93 of file Stat.cpp.

93{ return stat.print( stream ); }
std::ostream & print(std::ostream &o=std::cout) const
printout to std::ostream
Definition Stat.cpp:56