|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
simple local counter More...

Public Member Functions | |
| 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 | |
Private Types | |
| typedef std::map< std::string, long > | Map |
Private Attributes | |
| Map | m_map |
| std::string | m_message |
simple local counter
Definition at line 61 of file GaudiTool.cpp.
typedef std::map<std::string,long> GaudiToolLocal::Counter::Map [private] |
Definition at line 99 of file GaudiTool.cpp.
| GaudiToolLocal::Counter::Counter | ( | const std::string & | msg = " Misbalance " ) |
[inline] |
Definition at line 66 of file GaudiTool.cpp.
| GaudiToolLocal::Counter::~Counter | ( | ) | [inline] |
Definition at line 71 of file GaudiTool.cpp.
| 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.
{
if ( !GaudiTool::summaryEnabled() ) { return ; } // RETURN
//
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] |
Definition at line 100 of file GaudiTool.cpp.
Definition at line 101 of file GaudiTool.cpp.