Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::pool::Progress Class Reference

#include <poolprocessor.h>

Public Member Functions

void operator() (float progress) const noexcept
 
void operator() (double progress) const noexcept
 
void operator() (size_t i, size_t max) const noexcept
 

Detailed Description

A class to signal the progress of a background calculation: The progress reported should be in the range of [0.0, 1.0]. If the pool processor is running multiple jobs the progress will automatically be normalized. Only the progress of the last submitted job will be reported to the user.

auto calc = [mystate](pool::Progress progress) {
for(int i = n; i < N; ++i) {
progress(i, N);
// do work
}
return results;
};
Definition poolprocessor.h:103
See also
PoolProcessor

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