Gaudi Framework, version v21r7

Home   Generated: 22 Jan 2010

Tuples::Local::Counter Class Reference

Collaboration diagram for Tuples::Local::Counter:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 70 of file TupleObj.cpp.


Member Typedef Documentation

Definition at line 97 of file TupleObj.cpp.


Constructor & Destructor Documentation

Tuples::Local::Counter::Counter ( const std::string msg = " Misbalance "  )  [inline]

Definition at line 74 of file TupleObj.cpp.

00075         : m_map     ()
00076         , m_message ( msg ) 
00077       {};

Tuples::Local::Counter::~Counter (  )  [inline]

Definition at line 79 of file TupleObj.cpp.

00079 { report() ; m_map.clear() ;}


Member Function Documentation

long Tuples::Local::Counter::increment ( const std::string object  )  [inline]

Definition at line 81 of file TupleObj.cpp.

00081 { return ++m_map[object] ; }

long Tuples::Local::Counter::decrement ( const std::string object  )  [inline]

Definition at line 83 of file TupleObj.cpp.

00083 { return --m_map[object] ; }

long Tuples::Local::Counter::counts ( const std::string object  )  [inline]

Definition at line 85 of file TupleObj.cpp.

00085 { return   m_map[object] ; }

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       };


Member Data Documentation

Definition at line 101 of file TupleObj.cpp.

Definition at line 102 of file TupleObj.cpp.


The documentation for this class was generated from the following file:

Generated at Fri Jan 22 20:45:49 2010 for Gaudi Framework, version v21r7 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004