Inkscape
Vector Graphics Editor
|
A Progress object representing a sub-task of another Progress. More...
#include <progress.h>
Public Member Functions | |
SubProgress (Progress< T, S... > &parent, T from, T amount) | |
Construct a progress object for a sub-task. | |
![]() | |
bool | report (T const &... progress) |
Report a progress value, returning false if cancelled. | |
void | report_or_throw (T const &... progress) |
Report a progress value, throwing CancelledException if cancelled. | |
bool | keepgoing () const |
Return whether not cancelled. | |
void | throw_if_cancelled () const |
Throw CancelledException if cancelled. | |
operator bool () const | |
Convenience function - same as check(). | |
Private Member Functions | |
bool | _keepgoing () const override |
bool | _report (T const &progress, S const &... aux) override |
Private Attributes | |
Progress< T, S... > * | _root |
T | _from |
T | _amount |
Additional Inherited Members | |
![]() | |
~Progress ()=default | |
virtual bool | _report (T const &... progress)=0 |
A Progress object representing a sub-task of another Progress.
Definition at line 50 of file progress.h.
|
inline |
Construct a progress object for a sub-task.
Definition at line 55 of file progress.h.
References Inkscape::Async::SubProgress< T, S >::_amount, Inkscape::Async::SubProgress< T, S >::_from, Inkscape::Async::SubProgress< T, S >::_root, and parent.
|
inlineoverrideprivatevirtual |
Implements Inkscape::Async::Progress< T, S... >.
Definition at line 72 of file progress.h.
References Inkscape::Async::SubProgress< T, S >::_root, and Inkscape::Async::Progress< T >::keepgoing().
|
inlineoverrideprivate |
Definition at line 73 of file progress.h.
References Inkscape::Async::SubProgress< T, S >::_amount, Inkscape::Async::SubProgress< T, S >::_from, Inkscape::Async::SubProgress< T, S >::_root, and Inkscape::Async::Progress< T >::report().
|
private |
Definition at line 70 of file progress.h.
Referenced by Inkscape::Async::SubProgress< T, S >::_report(), and Inkscape::Async::SubProgress< T, S >::SubProgress().
|
private |
Definition at line 70 of file progress.h.
Referenced by Inkscape::Async::SubProgress< T, S >::_report(), and Inkscape::Async::SubProgress< T, S >::SubProgress().
|
private |
Definition at line 69 of file progress.h.
Referenced by Inkscape::Async::SubProgress< T, S >::_keepgoing(), Inkscape::Async::SubProgress< T, S >::_report(), and Inkscape::Async::SubProgress< T, S >::SubProgress().