simple local counter
More...
|
| | Counter (const std::string &msg=" Misbalance ") |
| |
| | ~Counter () |
| |
| long | increment (const std::string &object) |
| | make the increment
|
| |
| long | decrement (const std::string &object) |
| | make the decrement
|
| |
| long | counts (const std::string &object) |
| | current count
|
| |
| void | report () const |
| | make a report
|
| |
|
typedef std::map< std::string,
long > | Map |
| |
simple local counter
Definition at line 61 of file GaudiTool.cpp.
| GaudiToolLocal::Counter::Counter |
( |
const std::string & |
msg = " Misbalance " | ) |
|
|
inline |
| GaudiToolLocal::Counter::~Counter |
( |
| ) |
|
|
inline |
| long GaudiToolLocal::Counter::counts |
( |
const std::string & |
object | ) |
|
|
inline |
| long GaudiToolLocal::Counter::decrement |
( |
const std::string & |
object | ) |
|
|
inline |
| long GaudiToolLocal::Counter::increment |
( |
const std::string & |
object | ) |
|
|
inline |
| void GaudiToolLocal::Counter::report |
( |
| ) |
const |
|
inline |
make a report
keep the silence?
Definition at line 82 of file GaudiTool.cpp.
{
for ( Map::const_iterator entry =
m_map.begin() ;
m_map.end() != entry ; ++entry )
{
if( 0 == entry->second ) { continue ; }
std::cout <<
"GaudiTool WARNING " <<
m_message
<< "'" << entry->first << "' Counts = " << entry->second
<< std::endl ;
}
}
| Map GaudiToolLocal::Counter::m_map |
|
private |
| std::string GaudiToolLocal::Counter::m_message |
|
private |
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r1/GaudiAlg/src/lib/GaudiTool.cpp