| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Tuples::Local::Counter Class Reference
Collaboration diagram for Tuples::Local::Counter:
[legend]

## 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 37 of file TupleObj.cpp.

## Member Typedef Documentation

typedef std::map<std::string,long> Tuples::Local::Counter::Map
| private

Definition at line 64 of file TupleObj.cpp.

## Constructor & Destructor Documentation

Tuples::Local::Counter::Counter | ( | const std::string & | msg = `" Misbalance "` | ) |
| inline

Definition at line 41 of file TupleObj.cpp.

: m_map ()
, m_message ( msg )
{}

Tuples::Local::Counter::~Counter | ( |  | ) |
| inline

Definition at line 46 of file TupleObj.cpp.

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

## Member Function Documentation

long Tuples::Local::Counter::counts | ( | const std::string & | object | ) |
| inline

Definition at line 52 of file TupleObj.cpp.

{ return m_map[object] ; }

long Tuples::Local::Counter::decrement | ( | const std::string & | object | ) |
| inline

Definition at line 50 of file TupleObj.cpp.

{ return --m_map[object] ; }

long Tuples::Local::Counter::increment | ( | const std::string & | object | ) |
| inline

Definition at line 48 of file TupleObj.cpp.

{ return ++m_map[object] ; }

void Tuples::Local::Counter::report | ( |  | ) | const
| inline

Definition at line 54 of file TupleObj.cpp.

{
for ( Map::const_iterator entry = m_map.begin() ;
m_map.end() != entry ; ++entry )
{
if( 0 == entry->second ) { continue ; }
std::cout << "Tuples::TupleObj WARNING " << m_message
<< "'" << entry->first << "' Counts = " << entry->second
<< std::endl ;
}
};

## Member Data Documentation

Map Tuples::Local::Counter::m_map
| private

Definition at line 68 of file TupleObj.cpp.

std::string Tuples::Local::Counter::m_message
| private

Definition at line 69 of file TupleObj.cpp.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiAlg/src/lib/TupleObj.cpp