RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
rtk::GlobalTimer Class Reference

#include <rtkGlobalTimer.h>

+ Inheritance diagram for rtk::GlobalTimer:
+ Collaboration diagram for rtk::GlobalTimer:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef GlobalTimer Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual void Clear (void)
 
virtual const char * GetNameOfClass () const
 
virtual bool GetVerbose ()
 
virtual void Remove (const rtk::WatcherForTimer *w)
 
virtual void Report (std::ostream &os=std::cout) const
 
virtual void SetVerbose (bool _arg)
 
virtual void Start (const char *name)
 
virtual void Stop (const char *name)
 
virtual void Watch (itk::ProcessObject *o)
 

Static Public Member Functions

static Pointer GetInstance ()
 
static Pointer New ()
 

Protected Member Functions

 GlobalTimer ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual ~GlobalTimer ()
 

Protected Attributes

rtk::TimeProbesCollectorBase m_TimeProbesCollectorBase
 
bool m_Verbose
 
std::vector< rtk::WatcherForTimer * > m_Watchers
 

Private Member Functions

 GlobalTimer (const Self &)
 
void operator= (const Self &)
 

Private Attributes

itk::SimpleFastMutexLock m_Mutex
 

Static Private Attributes

static Pointer m_Instance
 

Detailed Description

Definition at line 37 of file rtkGlobalTimer.h.

Member Typedef Documentation

Definition at line 44 of file rtkGlobalTimer.h.

Definition at line 43 of file rtkGlobalTimer.h.

Standard class typedefs.

Definition at line 41 of file rtkGlobalTimer.h.

Definition at line 42 of file rtkGlobalTimer.h.

Constructor & Destructor Documentation

rtk::GlobalTimer::GlobalTimer ( )
protected
virtual rtk::GlobalTimer::~GlobalTimer ( )
protectedvirtual
rtk::GlobalTimer::GlobalTimer ( const Self )
private

Member Function Documentation

virtual void rtk::GlobalTimer::Clear ( void  )
virtual

Destroy the set of probes. New probes can be created after invoking this method.

static Pointer rtk::GlobalTimer::GetInstance ( )
static

Return the singleton instance with no reference counting.

Referenced by rtk::args_info_manager< TArgsInfo, TCleanupFunction >::args_info_manager().

virtual const char* rtk::GlobalTimer::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

virtual bool rtk::GlobalTimer::GetVerbose ( )
virtual
static Pointer rtk::GlobalTimer::New ( )
static

This is a singleton pattern New. There will only be ONE reference to a GlobalTimer object per process. Clients that call this must call Delete on the object so that the reference counting will work. The single instance will be unreferenced when the program exits.

void rtk::GlobalTimer::operator= ( const Self )
private
virtual void rtk::GlobalTimer::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual
virtual void rtk::GlobalTimer::Remove ( const rtk::WatcherForTimer w)
virtual

Remove a watcher

virtual void rtk::GlobalTimer::Report ( std::ostream &  os = std::cout) const
virtual

Report the summary of results from the probes

virtual void rtk::GlobalTimer::SetVerbose ( bool  _arg)
virtual

Set / Get macro for verbosity

virtual void rtk::GlobalTimer::Start ( const char *  name)
virtual

Start a probe with a particular name. If the time probe does not exist, it will be created

virtual void rtk::GlobalTimer::Stop ( const char *  name)
virtual

Stop a time probe identified with a name

virtual void rtk::GlobalTimer::Watch ( itk::ProcessObject o)
virtual

Create a new watcher and store it

Member Data Documentation

Pointer rtk::GlobalTimer::m_Instance
staticprivate

Definition at line 97 of file rtkGlobalTimer.h.

itk::SimpleFastMutexLock rtk::GlobalTimer::m_Mutex
private

Definition at line 98 of file rtkGlobalTimer.h.

rtk::TimeProbesCollectorBase rtk::GlobalTimer::m_TimeProbesCollectorBase
protected

Definition at line 90 of file rtkGlobalTimer.h.

bool rtk::GlobalTimer::m_Verbose
protected

Definition at line 87 of file rtkGlobalTimer.h.

std::vector<rtk::WatcherForTimer*> rtk::GlobalTimer::m_Watchers
protected

Definition at line 91 of file rtkGlobalTimer.h.


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