www.cemf.ir
Timers Class Reference
+ Inheritance diagram for Timers:
+ Collaboration diagram for Timers:

Public Member Functions

 TypeInfo ("Timers")
 
 Timers (const word &name)
 
 Timers (const word &name, Timers *parrent)
 
virtual ~Timers ()
 
uniquePtr< Timer > addTimer (const word &name)
 
void addToList (Timer *timer)
 
void removeFromList (Timer *timer)
 
virtual int32 level () const
 
virtual bool master () const
 
real accTimersTotal () const override
 
virtual bool write (iOstream &os, bool subTree=true) const
 
virtual bool read (iIstream &is)
 
- Public Member Functions inherited from Timer
 TypeInfo ("Timer")
 
 Timer ()=default
 
 Timer (const word &name)
 
 Timer (const word &name, Timers *parrent)
 
const word & name () const
 
virtual ~Timer ()
 
virtual void removeParrent ()
 
Timers * parrent () const
 
void start ()
 
void pause ()
 
void resume ()
 
void end ()
 
bool timerActive () const
 
real lastTime () const
 
real totalTime () const
 
real averageTime () const
 

Protected Attributes

List< pFlow::Timer * > timers_
 
int32 level_ = 0
 

Additional Inherited Members

- Protected Member Functions inherited from Timer
real averageTimeMax () const
 
real accTimersTotalMax () const
 

Detailed Description

Definition at line 32 of file Timers.hpp.

Constructor & Destructor Documentation

◆ Timers() [1/2]

Timers ( const word &  name)
inline

Definition at line 47 of file Timers.hpp.

◆ Timers() [2/2]

Timers ( const word &  name,
Timers *  parrent 
)
inline

Definition at line 52 of file Timers.hpp.

References Timers::level(), Timers::level_, and Timer::parrent().

+ Here is the call graph for this function:

◆ ~Timers()

virtual ~Timers ( )
inlinevirtual

Definition at line 62 of file Timers.hpp.

References Timers::timers_.

Member Function Documentation

◆ TypeInfo()

TypeInfo ( "Timers"  )

◆ addTimer()

uniquePtr<Timer> addTimer ( const word &  name)
inline

Definition at line 71 of file Timers.hpp.

References Timer::name().

+ Here is the call graph for this function:

◆ addToList()

void addToList ( Timer *  timer)
inline

Definition at line 77 of file Timers.hpp.

References Timers::timers_.

Referenced by Timer::Timer().

+ Here is the caller graph for this function:

◆ removeFromList()

void removeFromList ( Timer *  timer)
inline

Definition at line 82 of file Timers.hpp.

References List< T >::find(), and Timers::timers_.

+ Here is the call graph for this function:

◆ level()

virtual int32 level ( ) const
inlinevirtual

Reimplemented from Timer.

Definition at line 87 of file Timers.hpp.

References Timers::level_.

Referenced by Timers::Timers().

+ Here is the caller graph for this function:

◆ master()

virtual bool master ( ) const
inlinevirtual

Reimplemented from Timer.

Definition at line 92 of file Timers.hpp.

Referenced by Timers::accTimersTotal().

+ Here is the caller graph for this function:

◆ accTimersTotal()

pFlow::real accTimersTotal ( ) const
overridevirtual

Reimplemented from Timer.

Definition at line 24 of file Timers.cpp.

References Timers::master(), Timer::timerActive(), Timers::timers_, and Timer::totalTime().

+ Here is the call graph for this function:

◆ write()

bool write ( iOstream &  os,
bool  subTree = true 
) const
virtual

Reimplemented from Timer.

Definition at line 46 of file Timers.cpp.

References Timer::write().

Referenced by pFlow::operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

virtual bool read ( iIstream &  is)
inlinevirtual

Reimplemented from Timer.

Definition at line 102 of file Timers.hpp.

Member Data Documentation

◆ timers_

List<pFlow::Timer*> timers_
protected

◆ level_

int32 level_ = 0
protected

Definition at line 40 of file Timers.hpp.

Referenced by Timers::level(), and Timers::Timers().


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