Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::Async::SubProgress< T, S > Class Template Referencefinal

A Progress object representing a sub-task of another Progress. More...

#include <progress.h>

Inheritance diagram for Inkscape::Async::SubProgress< T, S >:
Inkscape::Async::Progress< T, S... >

Public Member Functions

 SubProgress (Progress< T, S... > &parent, T from, T amount)
 Construct a progress object for a sub-task.
 
- Public Member Functions inherited from Inkscape::Async::Progress< T, S... >
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
 
_from
 
_amount
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::Async::Progress< T, S... >
 ~Progress ()=default
 
virtual bool _report (T const &... progress)=0
 

Detailed Description

template<typename T, typename... S>
class Inkscape::Async::SubProgress< T, S >

A Progress object representing a sub-task of another Progress.

Definition at line 50 of file progress.h.

Constructor & Destructor Documentation

◆ SubProgress()

template<typename T , typename... S>
Inkscape::Async::SubProgress< T, S >::SubProgress ( Progress< T, S... > &  parent,
from,
amount 
)
inline

Member Function Documentation

◆ _keepgoing()

template<typename T , typename... S>
bool Inkscape::Async::SubProgress< T, S >::_keepgoing ( ) const
inlineoverrideprivatevirtual

◆ _report()

template<typename T , typename... S>
bool Inkscape::Async::SubProgress< T, S >::_report ( T const &  progress,
S const &...  aux 
)
inlineoverrideprivate

Member Data Documentation

◆ _amount

template<typename T , typename... S>
T Inkscape::Async::SubProgress< T, S >::_amount
private

◆ _from

template<typename T , typename... S>
T Inkscape::Async::SubProgress< T, S >::_from
private

◆ _root


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