Class Reference for E1039 Core & Analysis Software
PHTimeServer Class Reference

PHTimer server for accessing external information. More...

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/framework/phool/PHTimeServer.h>

Classes

class  iterator
 light iterator over PHTimer map More...
 
class  timer
 wrapper around PHTimer, for storage in a map More...
 

Public Member Functions

virtual ~PHTimeServer ()
 destructor More...
 
timer insert_new (const std::string &)
 insert new timer in map. More...
 
timer insert_new_single_shot (const std::string &)
 insert new single_shot timer in map. More...
 
timer get_timer (const std::string &)
 retrieve existing timer. throw exception if not found More...
 
timer get_single_shot_timer (const std::string &)
 retrieve existing timer. throw exception if not found More...
 
void print (std::ostream &out=std::cout) const
 dump all registered timer value. More...
 
void print_stat (std::ostream &out=std::cout) const
 dump all registered timer statistics. More...
 
iterator range (void)
 return iterator over the map, located at begin More...
 

Static Public Member Functions

static PHTimeServer * get (void)
 singleton accessor More...
 

Protected Member Functions

 PHTimeServer ()
 constructor More...
 

Detailed Description

PHTimer server for accessing external information.

Definition at line 28 of file PHTimeServer.h.

Constructor & Destructor Documentation

◆ ~PHTimeServer()

virtual PHTimeServer::~PHTimeServer ( )
inlinevirtual

destructor

Definition at line 68 of file PHTimeServer.h.

◆ PHTimeServer()

PHTimeServer::PHTimeServer ( )
inlineprotected

constructor

Definition at line 92 of file PHTimeServer.h.

Referenced by get().

+ Here is the caller graph for this function:

Member Function Documentation

◆ get()

static PHTimeServer* PHTimeServer::get ( void  )
inlinestatic

singleton accessor

Definition at line 61 of file PHTimeServer.h.

References PHTimeServer().

+ Here is the call graph for this function:

◆ get_single_shot_timer()

PHTimeServer::timer PHTimeServer::get_single_shot_timer ( const std::string &  key)

retrieve existing timer. throw exception if not found

Definition at line 76 of file PHTimeServer.cc.

◆ get_timer()

PHTimeServer::timer PHTimeServer::get_timer ( const std::string &  key)

retrieve existing timer. throw exception if not found

Definition at line 62 of file PHTimeServer.cc.

◆ insert_new()

PHTimeServer::timer PHTimeServer::insert_new ( const std::string &  key)

insert new timer in map.

Definition at line 19 of file PHTimeServer.cc.

◆ insert_new_single_shot()

PHTimeServer::timer PHTimeServer::insert_new_single_shot ( const std::string &  key)

insert new single_shot timer in map.

Definition at line 40 of file PHTimeServer.cc.

◆ print()

void PHTimeServer::print ( std::ostream &  out = std::cout) const

dump all registered timer value.

Definition at line 90 of file PHTimeServer.cc.

References PHTimer::PRINT(), and PHTimer::RUN.

+ Here is the call graph for this function:

◆ print_stat()

void PHTimeServer::print_stat ( std::ostream &  out = std::cout) const

dump all registered timer statistics.

Definition at line 127 of file PHTimeServer.cc.

References PHTimer::PRINT().

+ Here is the call graph for this function:

◆ range()

iterator PHTimeServer::range ( void  )
inline

return iterator over the map, located at begin

Definition at line 163 of file PHTimeServer.h.


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