KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
ProgressPrinter Class Reference

Prints the progress of an iterative, long computation. More...

#include <ProgressPrinter.h>

Public Member Functions

 ProgressPrinter (std::ostream &out, int max, int increments=100)
 
 ProgressPrinter (int max, int increments=100)
 
void Update ()
 
void Update (int iter)
 
virtual void Print (float fraction)
 
virtual void Done ()
 

Public Attributes

std::ostream & out
 
int max
 
int increments
 
int iter
 

Detailed Description

Prints the progress of an iterative, long computation.

The user calls Update() each iteration from 0...max. Print() is called "increments" times at evenly-spaced intervals. By default, prints the percentage complete to "out"


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