TRF Language Model
|
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... | |
|
inline |
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.
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.
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.