The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
Stat.cpp File Reference

Implementation file for class Stat. More...

#include <GaudiKernel/IStatSvc.h>
#include <GaudiKernel/Stat.h>
#include <GaudiKernel/StatEntity.h>
#include <format>
#include <iostream>
Include dependency graph for Stat.cpp:

Go to the source code of this file.

Functions

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

Detailed Description

Implementation file for class Stat.

Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2005-08-02
2007-07-08

Definition in file Stat.cpp.

Function Documentation

◆ operator+() [1/3]

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]

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]

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-()

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<<()

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