-
Notifications
You must be signed in to change notification settings - Fork 1
/
taskperthread.h
44 lines (38 loc) · 1.26 KB
/
taskperthread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright (C) 2018 Wiebe Cazemier <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* https://www.gnu.org/licenses/gpl-2.0.html
*/
#ifndef TASKPERTHREAD_H
#define TASKPERTHREAD_H
#include <qglobal.h>
class TaskPerThread
{
public:
explicit TaskPerThread(qint64 n, const int nOffset, qint64 minInclusive, qint64 maxExclusive);
void appendN(qint64 n);
void appendMax(qint64 maxExlusive);
qint64 getN() const;
int getNOffset() const;
qint64 getMinInclusive() const;
qint64 getMaxExclusive() const;
private:
qint64 n;
int nOffset;
qint64 minInclusive;
qint64 maxExclusive;
};
#endif // TASKPERTHREAD_H