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

#include <rtkGlobalTimerProbesCollector.h>

+ Collaboration diagram for rtk::GlobalTimerProbesCollector:

Public Types

typedef std::string IdType
 
typedef std::vector< IdTypeIdVector
 
typedef std::vector< unsigned int > IndentVector
 
typedef std::vector< itk::TimeProbeProbeVector
 

Public Member Functions

virtual void Clear (void)
 
 GlobalTimerProbesCollector ()
 
virtual void Report (std::ostream &os=std::cout) const
 
virtual unsigned int Start (const char *name)
 
virtual void Stop (unsigned int pos)
 
virtual ~GlobalTimerProbesCollector ()
 

Protected Attributes

unsigned int m_CurrentIndent
 
IdVector m_Ids
 
IndentVector m_Indent
 
ProbeVector m_Probes
 

Detailed Description

Aggregates a set of probes.

This class defines a set of ResourceProbes and assign names to them. The user can start and stop each one of the probes by addressing them by name.

See also
ResourceProbe

Definition at line 38 of file rtkGlobalTimerProbesCollector.h.

Member Typedef Documentation

Definition at line 41 of file rtkGlobalTimerProbesCollector.h.

Definition at line 42 of file rtkGlobalTimerProbesCollector.h.

typedef std::vector< unsigned int > rtk::GlobalTimerProbesCollector::IndentVector

Definition at line 44 of file rtkGlobalTimerProbesCollector.h.

Definition at line 43 of file rtkGlobalTimerProbesCollector.h.

Constructor & Destructor Documentation

rtk::GlobalTimerProbesCollector::GlobalTimerProbesCollector ( )

constructor

virtual rtk::GlobalTimerProbesCollector::~GlobalTimerProbesCollector ( )
virtual

destructor

Member Function Documentation

virtual void rtk::GlobalTimerProbesCollector::Clear ( void  )
virtual

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

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

Report the summary of results from the probes

virtual unsigned int rtk::GlobalTimerProbesCollector::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::GlobalTimerProbesCollector::Stop ( unsigned int  pos)
virtual

Stop a time probe identified with a name

Member Data Documentation

unsigned int rtk::GlobalTimerProbesCollector::m_CurrentIndent
protected

Definition at line 70 of file rtkGlobalTimerProbesCollector.h.

IdVector rtk::GlobalTimerProbesCollector::m_Ids
protected

Definition at line 68 of file rtkGlobalTimerProbesCollector.h.

IndentVector rtk::GlobalTimerProbesCollector::m_Indent
protected

Definition at line 69 of file rtkGlobalTimerProbesCollector.h.

ProbeVector rtk::GlobalTimerProbesCollector::m_Probes
protected

Definition at line 67 of file rtkGlobalTimerProbesCollector.h.


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