| The Gaudi Framework v29r1 (5cd95fa2)

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

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

Public Member Functions | Private Attributes | List of all members
Tuples::Local::Counter Class Referencefinal
Collaboration diagram for Tuples::Local::Counter:
[legend]

## Public Member Functions
| Counter (std::string msg=" Misbalance ")
| ~Counter ()
long | increment (const std::string &object)
long | decrement (const std::string &object)
long | counts (const std::string &object) const
void | report () const

## Private Attributes
std::map< std::string, long > | m_map
std::string | m_message

## Detailed Description

Definition at line 163 of file TupleObj.cpp.

## Constructor & Destructor Documentation

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

Definition at line 167 of file TupleObj.cpp.

167 : m_message( std::move( msg ) ) {}
std::move
T move(T...args)
Tuples::Local::Counter::m_message
std::string m_message
Definition: TupleObj.cpp:188

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

Definition at line 169 of file TupleObj.cpp.

169 { report(); }
Tuples::Local::Counter::report
void report() const
Definition: TupleObj.cpp:177

## Member Function Documentation

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

Definition at line 175 of file TupleObj.cpp.

175 { return m_map.at( object ); }
std::map::at
T at(T...args)
Tuples::Local::Counter::m_map
std::map< std::string, long > m_map
Definition: TupleObj.cpp:184

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

Definition at line 173 of file TupleObj.cpp.

173 { return --m_map[object]; }
Tuples::Local::Counter::m_map
std::map< std::string, long > m_map
Definition: TupleObj.cpp:184

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

Definition at line 171 of file TupleObj.cpp.

171 { return ++m_map[object]; }
Tuples::Local::Counter::m_map
std::map< std::string, long > m_map
Definition: TupleObj.cpp:184

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

Definition at line 177 of file TupleObj.cpp.

178 {
179 for ( auto& entry : m_map ) {
180 if ( entry.second != 0 )
181 std::cout << "Tuples::TupleObj WARNING " << m_message << "'" << entry.first << "' Counts = " << entry.second
182 << std::endl;
183 }
184 };
std::endl
T endl(T...args)
Tuples::Local::Counter::m_map
std::map< std::string, long > m_map
Definition: TupleObj.cpp:184
Tuples::Local::Counter::m_message
std::string m_message
Definition: TupleObj.cpp:188
std::cout

## Member Data Documentation

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

Definition at line 184 of file TupleObj.cpp.

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

Definition at line 188 of file TupleObj.cpp.

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

- GaudiAlg/src/lib/TupleObj.cpp