6 #ifndef MYRAMATH_JOBGRAPH_OPTIONS_H     7 #define MYRAMATH_JOBGRAPH_OPTIONS_H    10 #include <myramath/MYRAMATH_EXPORT.h>    26     static int default_threading_layer();
    27     const static int THREADING_LAYER_OMP    = 1;
    28     const static int THREADING_LAYER_SERIAL = 0;
    29     static int sanitize(
int in_threading_layer);
    49       { threading_layer = sanitize(in_threading_layer); 
return *
this; }
    51     Options& set_nthreads(
int in_nthreads)
    52       { nthreads = in_nthreads; 
return *
this; }
    55       { progress = in_progress; 
return *
this; }
 int threading_layer
Which threading_layer to use? 
Definition: Options.h:32
int nthreads
How many threads to use? 
Definition: Options.h:35
Options & set_threading_layer(int in_threading_layer)
Named constructor idiom, setters. 
Definition: Options.h:48
Interface for measuring progress via callbacks. Wraps an underlying polymorphic ProgressMeterBase. 
Definition: ProgressMeter.h:55
Returns maximum number of threads, by probing the environment for MYRAMATH_NUM_THREADS. 
ProgressMeter progress
Enable progress meter? 
Definition: Options.h:38
static Options create()
Named constructor idiom, creates default options. 
Definition: Options.h:44
Interface type for progress measurement and control within JobGraph's.