The Gaudi Framework  master (933c680c)
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 77 of file Stat.cpp.

77 {
78 Stat s( stat );
79 s += value;
80 return s;
81}
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 65 of file Stat.cpp.

65 {
66 Stat s( stat );
67 s += value;
68 return s;
69}

◆ operator+() [3/3]

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

external operator for addition of Stat and Stat

Definition at line 83 of file Stat.cpp.

83 {
84 Stat s( stat );
85 s += value;
86 return s;
87}

◆ operator-()

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

external operator for subtraction of Stat and a number

Definition at line 71 of file Stat.cpp.

71 {
72 Stat s( stat );
73 s -= value;
74 return s;
75}

◆ operator<<()

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

external printout operator to std::ostream

Definition at line 89 of file Stat.cpp.

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