Minsky
|
#include <progress.h>
Public Member Functions | |
void | displayProgress (bool inDestruct=false) |
void | increment (bool inDestruct=false) |
void | operator++ () |
Public Attributes | |
std::string | title |
std::shared_ptr< std::atomic< bool > > | cancel =std::make_shared<std::atomic<bool>>(false) |
set to true to cancel process in progreess displayProgress will throw if cancel is set, but destructors should not throw, so set inDestruct to true when calling from a destructor More... | |
Private Attributes | |
double | delta =100 |
double | progress =0 |
bool | updaterStack =false |
Friends | |
class | ProgressUpdater |
Definition at line 35 of file progress.h.
void minsky::Progress::displayProgress | ( | bool | inDestruct = false | ) |
Definition at line 1794 of file minsky.cc.
References cancel, minsky::minsky(), progress, minsky::Minsky::progress(), and title.
Referenced by increment(), minsky::ProgressUpdater::ProgressUpdater(), and minsky::ProgressUpdater::setProgress().
|
inline |
Definition at line 48 of file progress.h.
References delta, displayProgress(), and progress.
Referenced by operator++(), and minsky::ProgressUpdater::~ProgressUpdater().
|
inline |
Definition at line 55 of file progress.h.
References increment().
|
friend |
Definition at line 40 of file progress.h.
std::shared_ptr<std::atomic<bool> > minsky::Progress::cancel =std::make_shared<std::atomic<bool>>(false) |
set to true to cancel process in progreess displayProgress will throw if cancel is set, but destructors should not throw, so set inDestruct to true when calling from a destructor
Definition at line 43 of file progress.h.
Referenced by displayProgress().
|
private |
Definition at line 37 of file progress.h.
Referenced by increment(), minsky::ProgressUpdater::ProgressUpdater(), and minsky::ProgressUpdater::setProgress().
|
private |
Definition at line 38 of file progress.h.
Referenced by displayProgress(), increment(), minsky::ProgressUpdater::setProgress(), and minsky::ProgressUpdater::~ProgressUpdater().
std::string minsky::Progress::title |
Definition at line 42 of file progress.h.
Referenced by displayProgress(), and minsky::ProgressUpdater::ProgressUpdater().
|
private |
Definition at line 39 of file progress.h.
Referenced by minsky::ProgressUpdater::ProgressUpdater(), and minsky::ProgressUpdater::~ProgressUpdater().