#include <log.hh>
|
void | add (std::string const &tag) |
|
void | reset () |
|
void | reset (std::string const &tag) |
|
Definition at line 38 of file log.hh.
◆ container_t
◆ Counter() [1/2]
Log::Counter::Counter |
( |
| ) |
|
|
inlineprivate |
◆ Counter() [2/2]
Log::Counter::Counter |
( |
Counter const & |
| ) |
|
|
private |
◆ operator=()
◆ get()
static Counter& Log::Counter::get |
( |
| ) |
|
|
inlinestatic |
◆ add()
void Log::Counter::add |
( |
std::string const & |
tag | ) |
|
|
inline |
Definition at line 60 of file log.hh.
62 boost::mutex::scoped_lock lock(
m_mutex);
64 container_t::iterator
const it =
m_counters.find(tag);
◆ reset() [1/2]
void Log::Counter::reset |
( |
| ) |
|
|
inline |
Definition at line 73 of file log.hh.
75 boost::mutex::scoped_lock lock(
m_mutex);
◆ reset() [2/2]
void Log::Counter::reset |
( |
std::string const & |
tag | ) |
|
|
inline |
Definition at line 79 of file log.hh.
81 boost::mutex::scoped_lock lock(
m_mutex);
83 container_t::iterator
const it =
m_counters.find(tag);
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
Counter const & |
c |
|
) |
| |
|
friend |
Definition at line 91 of file log.hh.
93 boost::mutex::scoped_lock lock(c.m_mutex);
96 container_t::const_iterator it = c.m_counters.begin(), et = c.m_counters.end();
100 stream << it->first <<
": " << it->second <<
", ";
◆ m_counters
◆ m_mutex
boost::mutex Log::Counter::m_mutex |
|
mutableprivate |
The documentation for this class was generated from the following file: