ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::ProgressBar Class Reference

#include <ProgressBar.hpp>

Public Member Functions

 ProgressBar ()
 
 ProgressBar (std::size_t size, int update=1)
 
 ~ProgressBar ()
 
void next (size_t increment=1)
 indicate the next step in process More...
 

Protected Member Functions

double timeRemaining ()
 
double timePassed ()
 
time_t endTime ()
 
void update ()
 

Protected Attributes

std::size_t numEvents
 
int updateInterval
 
bool hasStarted
 
time_t startTime
 
double currentPercent
 
unsigned int currentEvent
 
double lastUpdate
 

Detailed Description

Definition at line 12 of file ProgressBar.hpp.

+ Collaboration diagram for ComPWA::ProgressBar:

Constructor & Destructor Documentation

◆ ProgressBar() [1/2]

ComPWA::ProgressBar::ProgressBar ( )

Definition at line 12 of file ProgressBar.cpp.

◆ ProgressBar() [2/2]

ComPWA::ProgressBar::ProgressBar ( std::size_t  size,
int  update = 1 
)

Definition at line 14 of file ProgressBar.cpp.

◆ ~ProgressBar()

ComPWA::ProgressBar::~ProgressBar ( )

Definition at line 21 of file ProgressBar.cpp.

Member Function Documentation

◆ endTime()

time_t ComPWA::ProgressBar::endTime ( )
protected

Definition at line 81 of file ProgressBar.cpp.

◆ next()

void ComPWA::ProgressBar::next ( size_t  increment = 1)

indicate the next step in process

Definition at line 23 of file ProgressBar.cpp.

◆ timePassed()

double ComPWA::ProgressBar::timePassed ( )
protected

Definition at line 75 of file ProgressBar.cpp.

◆ timeRemaining()

double ComPWA::ProgressBar::timeRemaining ( )
protected

Definition at line 70 of file ProgressBar.cpp.

◆ update()

void ComPWA::ProgressBar::update ( )
protected

Definition at line 42 of file ProgressBar.cpp.

Member Data Documentation

◆ currentEvent

unsigned int ComPWA::ProgressBar::currentEvent
protected

Definition at line 35 of file ProgressBar.hpp.

◆ currentPercent

double ComPWA::ProgressBar::currentPercent
protected

Definition at line 34 of file ProgressBar.hpp.

◆ hasStarted

bool ComPWA::ProgressBar::hasStarted
protected

Definition at line 31 of file ProgressBar.hpp.

◆ lastUpdate

double ComPWA::ProgressBar::lastUpdate
protected

Definition at line 36 of file ProgressBar.hpp.

◆ numEvents

std::size_t ComPWA::ProgressBar::numEvents
protected

Definition at line 29 of file ProgressBar.hpp.

◆ startTime

time_t ComPWA::ProgressBar::startTime
protected

Definition at line 32 of file ProgressBar.hpp.

◆ updateInterval

int ComPWA::ProgressBar::updateInterval
protected

Definition at line 30 of file ProgressBar.hpp.


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