aimstil  5.0.5
til::callback::PI_Timer< TPICallback > Class Template Reference

ProgressIndicator callback that prints percentage if computation is taking time. More...

#include <cathier/progress_indicator.h>

Public Member Functions

 PI_Timer ()
 
 PI_Timer (double delay)
 
void init ()
 
void setDelay (double s)
 Set delay, in seconds. More...
 
TPICallback & callback ()
 Access callback object. More...
 
void operator() (std::size_t current, std::size_t total)
 

Detailed Description

template<typename TPICallback>
class til::callback::PI_Timer< TPICallback >

ProgressIndicator callback that prints percentage if computation is taking time.

Definition at line 39 of file progress_indicator.h.

Constructor & Destructor Documentation

◆ PI_Timer() [1/2]

template<typename TPICallback >
til::callback::PI_Timer< TPICallback >::PI_Timer ( )
inline

Definition at line 43 of file progress_indicator.h.

◆ PI_Timer() [2/2]

template<typename TPICallback >
til::callback::PI_Timer< TPICallback >::PI_Timer ( double  delay)
inlineexplicit

Definition at line 51 of file progress_indicator.h.

Member Function Documentation

◆ callback()

template<typename TPICallback >
TPICallback& til::callback::PI_Timer< TPICallback >::callback ( )
inline

Access callback object.

Definition at line 69 of file progress_indicator.h.

◆ init()

template<typename TPICallback >
void til::callback::PI_Timer< TPICallback >::init ( )
inline

Definition at line 59 of file progress_indicator.h.

◆ operator()()

template<typename TPICallback >
void til::callback::PI_Timer< TPICallback >::operator() ( std::size_t  current,
std::size_t  total 
)
inline

Definition at line 73 of file progress_indicator.h.

◆ setDelay()

template<typename TPICallback >
void til::callback::PI_Timer< TPICallback >::setDelay ( double  s)
inline

Set delay, in seconds.

Definition at line 67 of file progress_indicator.h.


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