|  | 
|  | Stat (StatEntity *entity=0, const std::string &name="", const std::string &group="") | 
|  | constructor from StatEntity, name and group :  More... 
 | 
|  | 
|  | Stat (StatEntity &entity, const std::string &name="", const std::string &group="") | 
|  | constructor from StatEntity, name and group :  More... 
 | 
|  | 
|  | Stat (IStatSvc *svc, const std::string &tag) | 
|  | constructor from IStatSvc, tag and value  More... 
 | 
|  | 
|  | Stat (IStatSvc *svc, const std::string &tag, const double flag) | 
|  | constructor from IStatSvc, tag and value  More... 
 | 
|  | 
|  | Stat (ICounterSvc *svc, const std::string &group, const std::string &name) | 
|  | constructor from ICounterSvc, group and name  More... 
 | 
|  | 
|  | Stat (const Stat &)=default | 
|  | copy constructor  More... 
 | 
|  | 
| Stat & | operator= (const Stat &)=default | 
|  | Assignement operator.  More... 
 | 
|  | 
|  | ~Stat ()=default | 
|  | destructor  More... 
 | 
|  | 
| const StatEntity * | entity () const | 
|  | get the entity  More... 
 | 
|  | 
| const StatEntity * | operator-> () const | 
|  | dereference operaqtor  More... 
 | 
|  | 
|  | operator const StatEntity & () const | 
|  | cast to StatEntity  More... 
 | 
|  | 
| bool | operator! () const | 
|  | check validity  More... 
 | 
|  | 
| Stat & | operator+= (const double f) | 
|  | General increment for the counter.  More... 
 | 
|  | 
| Stat & | operator++ () | 
|  | Pre-increment operator for the counter.  More... 
 | 
|  | 
| Stat & | operator++ (int) | 
|  | Post-increment operator for the counter.  More... 
 | 
|  | 
| Stat & | operator-= (const double f) | 
|  | General decrement operator for the counter.  More... 
 | 
|  | 
| Stat & | operator-- () | 
|  | Pre-decrement operator for the flag.  More... 
 | 
|  | 
| Stat & | operator-- (int) | 
|  | Post-decrement operator for the flag.  More... 
 | 
|  | 
| Stat & | operator+= (const StatEntity &right) | 
|  | increment with StatEntity object  More... 
 | 
|  | 
| Stat & | operator+= (const Stat &right) | 
|  | increment with other stat objects  More... 
 | 
|  | 
| std::string | toString () const | 
|  | representation as string  More... 
 | 
|  | 
| std::ostream & | print (std::ostream &o=std::cout) const | 
|  | printout to std::ostream  More... 
 | 
|  | 
| std::ostream & | fillStream (std::ostream &o) const | 
|  | printout to std::ostream  More... 
 | 
|  | 
| StatEntity * | counter () const | 
|  | alternative access to underlying counter (for ICounterSvc::CounterObj)  More... 
 | 
|  | 
| const std::string & | name () const | 
|  | counter name  More... 
 | 
|  | 
| const std::string & | group () const | 
|  | counter group (for ICounterSvc)  More... 
 | 
|  | 
Small wrapper class for easy manipulation with generic counters and IStatSvc&ICounterSvc interface. 
It acts as "smart pointer" fro StatEntity objects, and allows manipulation with StatEntity objects, owned by GaudiCommon<TYPE> base class and/or IStatSvc/ICounterSvc
long nTracks = ... ;
Stat stat( chronoSvc() , 
"#tracks" , nTracks ) ;
 Alternatively one can use operator methods:
long nTracks = ... ;
Stat stat( chronoSvc() , 
"#tracks" ) ;
 stat += nTracks ;
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@l.nosp@m.app..nosp@m.in2p3.nosp@m..fr 
- Date
- 2007-08-02 
Definition at line 46 of file Stat.h.