Chopper
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
progress_bar Struct Reference

Public Member Functions

 progress_bar (size_t const total)
 
void report ()
 
void print_progress (size_t const percentage) const
 

Public Attributes

std::mutex report_mutex {}
 
size_t last_printed {}
 
size_t current {}
 
size_t total {}
 

Constructor & Destructor Documentation

◆ progress_bar()

progress_bar::progress_bar ( size_t const  total)
inline

Member Function Documentation

◆ print_progress()

void progress_bar::print_progress ( size_t const  percentage) const
inline

◆ report()

void progress_bar::report ( )
inline

Member Data Documentation

◆ current

size_t progress_bar::current {}

◆ last_printed

size_t progress_bar::last_printed {}

◆ report_mutex

std::mutex progress_bar::report_mutex {}

◆ total

size_t progress_bar::total {}

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