libkpl  4.1
A Library for Graphical Presentation of Data Sets and Functions
calcjob.h
1 //
2 // C++ Interface: calcjob
3 //
4 // Description:
5 //
6 //
7 // Author: Werner Stille <stille@uni-freiburg.de>, (C) 2015
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef CALCJOB_H
13 #define CALCJOB_H
14 
15 #include <ThreadWeaver/Job>
16 
17 using namespace ThreadWeaver;
18 
24 class CalcJob : public Job
25 {
26 public:
36  CalcJob(const double* x, double* values,
37  double (*func)(double, const double*), const double* par, int n,
38  QObject* parent = 0);
40  ~CalcJob();
41 
42 protected:
44  void run();
45  const double *m_t, *m_par;
46  double* m_values;
47  double (*m_func)(double, const double*);
48  int m_n;
49 };
50 
51 #endif
Calculation job class.
Definition: calcjob.h:24