cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
ProgressBar Class Reference

A simple progress indicator. More...

#include <CepGen/Utils/ProgressBar.h>

Public Member Functions

 ProgressBar (size_t tot, size_t freq=10)
 Progress bar constructor.
 
 ~ProgressBar ()
 
void update (size_t iter) const
 Broadcast the current progress to the bar.
 

Detailed Description

Definition at line 28 of file ProgressBar.h.

Constructor & Destructor Documentation

◆ ProgressBar()

ProgressBar ( size_t  tot,
size_t  freq = 10 
)
explicit
Parameters
[in]totTotal number of steps before completion
[in]freqFrequency at which the tick is refreshed

Definition at line 29 of file ProgressBar.cpp.

◆ ~ProgressBar()

Definition at line 37 of file ProgressBar.cpp.

Member Function Documentation

◆ update()

void update ( size_t  iter) const
Parameters
[in]iterCurrent iteration

Definition at line 43 of file ProgressBar.cpp.