1 #ifndef __GAUDI_CHRONOSTATSVC_STAT_H__ 2 #define __GAUDI_CHRONOSTATSVC_STAT_H__ 66 : m_entity( entity ), m_tag(
name ), m_group( group )
84 : m_entity( &entity ), m_tag(
name ), m_group( group )
234 ( *m_entity ) += right;
241 if ( 0 != right.
entity() ) {
242 ( *this ) += *right.
entity();
297 #endif // __GAUDI_CHRONOSTATSVC_STAT_H__
Stat & operator-=(const double f)
General decrement operator for the counter.
bool operator!() const
check validity
Small wrapper class for easy manipulation with generic counters and IStatSvc interface.
SmartIF< IStatSvc > m_stat
Stat service.
StatEntity * counter() const
alternative access to underlying counter
const std::string & name() const
counter name
Stat & operator++(int)
Post-increment operator for the counter.
std::ostream & fillStream(std::ostream &o) const
printout to std::ostream
Stat & operator++()
Pre-increment operator for the counter.
Stat & operator+=(const double f)
General increment for the counter.
GAUDI_API std::ostream & operator<<(std::ostream &stream, const Stat &stat)
external printout operator to std::ostream
PropertyMgr & operator=(const PropertyMgr &)=delete
Stat & operator--()
Pre-decrement operator for the flag.
std::string m_tag
unique stat tag(name)
Stat(StatEntity *entity=0, const std::string &name="", const std::string &group="")
constructor from StatEntity, name and group :
Stat & operator--(int)
Post-decrement operator for the flag.
Stat(StatEntity &entity, const std::string &name="", const std::string &group="")
constructor from StatEntity, name and group :
const StatEntity * operator->() const
dereference operaqtor
const StatEntity * entity() const
get the entity
Stat & operator+=(const StatEntity &right)
increment with StatEntity object
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
"Stat"-related part of interface IChronoStatSvc
backward compatible StatEntity class.
Stat & operator+=(const Stat &right)
increment with other stat objects
std::string toString(const Type &)
const std::string & group() const
counter group