libmoost
moost::multi_timer Class Reference

#include <timer.h>

List of all members.

Classes

class  reassignable_scoped_time
class  scoped_time

Public Types

typedef std::map< std::string,
boost::shared_ptr< timer >
>::iterator 
iterator
typedef std::map< std::string,
boost::shared_ptr< timer >
>::const_iterator 
const_iterator

Public Member Functions

 multi_timer (size_t resolution=4096)
timeroperator[] (const std::string &name)
timeroperator() (const std::string &name, int max_threshold_time_ms)
boost::mutex & mutex ()
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const

Private Attributes

size_t m_resolution
boost::mutex m_mutex
std::map< std::string,
boost::shared_ptr< timer > > 
m_timers

Detailed Description

multi_timer provides a thread-safe collection of timers indexed by name just a little syntactic confectionary

Definition at line 133 of file timer.h.


Member Typedef Documentation

typedef std::map< std::string, boost::shared_ptr< timer > >::const_iterator moost::multi_timer::const_iterator

Definition at line 149 of file timer.h.

typedef std::map< std::string, boost::shared_ptr< timer > >::iterator moost::multi_timer::iterator

Definition at line 148 of file timer.h.


Constructor & Destructor Documentation

moost::multi_timer::multi_timer ( size_t  resolution = 4096) [inline]

Definition at line 146 of file timer.h.


Member Function Documentation

Definition at line 204 of file timer.h.

Definition at line 206 of file timer.h.

Definition at line 205 of file timer.h.

Definition at line 207 of file timer.h.

boost::mutex& moost::multi_timer::mutex ( ) [inline]

Definition at line 201 of file timer.h.

timer& moost::multi_timer::operator() ( const std::string &  name,
int  max_threshold_time_ms 
) [inline]

Definition at line 191 of file timer.h.

timer& moost::multi_timer::operator[] ( const std::string &  name) [inline]

Definition at line 182 of file timer.h.


Member Data Documentation

boost::mutex moost::multi_timer::m_mutex [private]

Definition at line 139 of file timer.h.

Definition at line 137 of file timer.h.

std::map< std::string, boost::shared_ptr< timer > > moost::multi_timer::m_timers [private]

Definition at line 142 of file timer.h.


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