#include <ProgressBar.h>
Collaboration diagram for PLearn::ProgressBar:
Public Member Functions | |
ProgressBar (string _title, unsigned long the_maxpos) | |
ProgressBar (ostream &_out, string _title, unsigned long the_maxpos) | |
ProgressBar (PStream &_out, string _title, unsigned long the_maxpos) | |
void | operator() (unsigned long newpos) |
void | update (unsigned long newpos) |
void | close () |
~ProgressBar () | |
Static Public Member Functions | |
void | setPlugin (PP< ProgressBarPlugin > plugin_) |
PP< ProgressBarPlugin > | getCurrentPlugin () |
Public Attributes | |
string | title |
unsigned long | currentpos |
unsigned long | maxpos |
Private Attributes | |
bool | closed |
Static Private Attributes | |
PP< ProgressBarPlugin > | plugin |
Each progressBar you create is connected to the same ProgressBarPlugin object. By default, a TextProgressBarPlugin that dumps the text in stderr is created and used.
FAQ: Q #1 : How do I reuse the same progress bar? A #1 : simply call progress_bar(i) again with 'i' from 0..maxpos (The text progress bar plugin will display a new progress bar)
Definition at line 109 of file ProgressBar.h.
|
Definition at line 66 of file ProgressBar.cc. References plugin. |
|
Definition at line 75 of file ProgressBar.cc. References plugin. |
|
Definition at line 83 of file ProgressBar.cc. References plugin. |
|
Definition at line 92 of file ProgressBar.cc. References close(). |
|
Definition at line 97 of file ProgressBar.cc. References closed, currentpos, maxpos, operator()(), and plugin. Referenced by PLearn::DX_create_grid_outputs_file(), PLearn::SequentialModelSelector::test(), PLearn::SequentialModelSelector::train(), and ~ProgressBar(). |
|
Definition at line 59 of file ProgressBar.cc. References plugin. |
|
Definition at line 124 of file ProgressBar.h. References operator()(), and plugin. Referenced by close(), and operator()(). |
|
Definition at line 129 of file ProgressBar.h. References plugin, and setPlugin(). Referenced by setPlugin(). |
|
|
Definition at line 138 of file ProgressBar.h. Referenced by close(). |
|
Definition at line 113 of file ProgressBar.h. Referenced by close(), and PLearn::TextProgressBarPlugin::update(). |
|
Definition at line 114 of file ProgressBar.h. Referenced by PLearn::TextProgressBarPlugin::addProgressBar(), close(), and PLearn::TextProgressBarPlugin::update(). |
|
Definition at line 57 of file ProgressBar.cc. Referenced by close(), getCurrentPlugin(), operator()(), ProgressBar(), setPlugin(), and update(). |
|
Definition at line 112 of file ProgressBar.h. Referenced by PLearn::TextProgressBarPlugin::addProgressBar(), and PLearn::TextProgressBarPlugin::update(). |