Public Member Functions | |
Counter (const std::string &msg=" Misbalance ") | |
~Counter () | |
long | increment (const std::string &object) |
long | decrement (const std::string &object) |
long | counts (const std::string &object) |
void | report () const |
Private Types | |
typedef std::map< std::string, long > | Map |
Private Attributes | |
Map | m_map |
std::string | m_message |
Definition at line 70 of file TupleObj.cpp.
typedef std::map<std::string,long> Tuples::Local::Counter::Map [private] |
Definition at line 97 of file TupleObj.cpp.
Tuples::Local::Counter::Counter | ( | const std::string & | msg = " Misbalance " |
) | [inline] |
Tuples::Local::Counter::~Counter | ( | ) | [inline] |
long Tuples::Local::Counter::increment | ( | const std::string & | object | ) | [inline] |
long Tuples::Local::Counter::decrement | ( | const std::string & | object | ) | [inline] |
long Tuples::Local::Counter::counts | ( | const std::string & | object | ) | [inline] |
void Tuples::Local::Counter::report | ( | ) | const [inline] |
Definition at line 87 of file TupleObj.cpp.
00088 { 00089 for ( Map::const_iterator entry = m_map.begin() ; 00090 m_map.end() != entry ; ++entry ) 00091 { 00092 if( 0 == entry->second ) { continue ; } 00093 std::cout << "Tuples::TupleObj WARNING " << m_message 00094 << "'" << entry->first << "' Counts = " << entry->second 00095 << std::endl ; 00096 } 00097 };
Map Tuples::Local::Counter::m_map [private] |
Definition at line 101 of file TupleObj.cpp.
std::string Tuples::Local::Counter::m_message [private] |
Definition at line 102 of file TupleObj.cpp.