stdex
Additional custom or not Standard C++ covered algorithms
Loading...
Searching...
No Matches
stdex::progress< T > Class Template Reference

Progress indicator base class. More...

#include <stdex/progress.hpp>

Inheritance diagram for stdex::progress< T >:
stdex::aggregate_progress< T >::worker_progress stdex::global_progress< T > stdex::lazy_progress< T > stdex::timeout_progress< T > stdex::progress_switcher< T >

Public Member Functions

virtual void set_text (const char *msg)
 Set progress indicator text.
 
virtual void set_range (T start, T end)
 Set progress range extent.
 
virtual void set (T value)
 Set current progress.
 
virtual void show (bool show=true)
 Show or hide progress.
 
virtual bool cancel ()
 Query whether user requested abort.
 

Detailed Description

template<class T>
class stdex::progress< T >

Progress indicator base class.

Member Function Documentation

◆ cancel()

template<class T >
virtual bool stdex::progress< T >::cancel ( )
inlinevirtual

◆ set()

template<class T >
virtual void stdex::progress< T >::set ( T value)
inlinevirtual

Set current progress.

Parameters
[in]valueCurrent value of the progress. Must be between start and end parameters provided in set_range() call.

Reimplemented in stdex::aggregate_progress< T >::worker_progress, stdex::global_progress< T >, stdex::lazy_progress< T >, and stdex::timeout_progress< T >.

◆ set_range()

template<class T >
virtual void stdex::progress< T >::set_range ( T start,
T end )
inlinevirtual

Set progress range extent.

Parameters
[in]startMinimum value of the progress
[in]endMaximum value of the progress

Reimplemented in stdex::aggregate_progress< T >::worker_progress, stdex::global_progress< T >, stdex::lazy_progress< T >, and stdex::timeout_progress< T >.

◆ set_text()

template<class T >
virtual void stdex::progress< T >::set_text ( const char * msg)
inlinevirtual

Set progress indicator text.

Parameters
[in]msgText to display

Reimplemented in stdex::aggregate_progress< T >::worker_progress, stdex::global_progress< T >, and stdex::timeout_progress< T >.

◆ show()

template<class T >
virtual void stdex::progress< T >::show ( bool show = true)
inlinevirtual

Show or hide progress.

Parameters
[in]showShows or hides progress indicator

Reimplemented in stdex::aggregate_progress< T >::worker_progress, stdex::global_progress< T >, and stdex::timeout_progress< T >.


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