| The Gaudi Framework v27r1

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

## Constructor & Destructor Documentation

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

Definition at line 103 of file TupleObj.cpp.

104 : m_message ( std::move(msg) )
105 {}
std::move
T move(T...args)
Tuples::Local::Counter::m_message
std::string m_message
Definition: TupleObj.cpp:128

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

Definition at line 107 of file TupleObj.cpp.

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

## Member Function Documentation

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

Definition at line 113 of file TupleObj.cpp.

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

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

Definition at line 111 of file TupleObj.cpp.

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

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

Definition at line 109 of file TupleObj.cpp.

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

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

Definition at line 115 of file TupleObj.cpp.

116 {
117 for ( auto& entry : m_map )
118 {
119 if( entry.second != 0 ) std::cout
120 << "Tuples::TupleObj WARNING " << m_message
121 << "'" << entry.first << "' Counts = " << entry.second
122 << std::endl ;
123 }
124 };
std::endl
T endl(T...args)
Tuples::Local::Counter::m_map
std::map< std::string, long > m_map
Definition: TupleObj.cpp:124
Tuples::Local::Counter::m_message
std::string m_message
Definition: TupleObj.cpp:128
std::cout

## Member Data Documentation

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

Definition at line 124 of file TupleObj.cpp.

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

Definition at line 128 of file TupleObj.cpp.

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

- GaudiAlg/src/lib/TupleObj.cpp