TRF Language Model
wb::ProgressBar Class Reference

a progress bar class More...

#include <wb-log.h>

Public Member Functions

 ProgressBar ()
 
 ProgressBar (long long total, const char *head="", const char *sym="[=]")
 
void Reset (long long total=100, const char *head="", const char *sym="[=]")
 reset the progress bar More...
 
void Reset (long long n, long long total=100, const char *head="", const char *sym="[=]")
 reset the progress bar More...
 
void Update (long long n=-1)
 update the progress bar. n should be from 1 to m_total More...
 

Detailed Description

a progress bar class

Definition at line 64 of file wb-log.h.

Constructor & Destructor Documentation

§ ProgressBar() [1/2]

wb::ProgressBar::ProgressBar ( )
inline

Definition at line 75 of file wb-log.h.

§ ProgressBar() [2/2]

wb::ProgressBar::ProgressBar ( long long  total,
const char *  head = "",
const char *  sym = "[=]" 
)
inline

Definition at line 81 of file wb-log.h.

Member Function Documentation

§ Reset() [1/2]

void wb::ProgressBar::Reset ( long long  total = 100,
const char *  head = "",
const char *  sym = "[=]" 
)

reset the progress bar

Definition at line 171 of file wb-log.cpp.

§ Reset() [2/2]

void wb::ProgressBar::Reset ( long long  n,
long long  total = 100,
const char *  head = "",
const char *  sym = "[=]" 
)

reset the progress bar

Definition at line 180 of file wb-log.cpp.

§ Update()

void wb::ProgressBar::Update ( long long  n = -1)

update the progress bar. n should be from 1 to m_total

Definition at line 189 of file wb-log.cpp.


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