aboutsummaryrefslogtreecommitdiff
path: root/aberth/polygen.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-04-20 21:15:46 +0200
committertomsmeding <tom.smeding@gmail.com>2019-04-20 21:16:10 +0200
commit284ce56948aae60134a1073c6499c7fb97ffb326 (patch)
tree174a34d94072f4ee819a89101ef6ff182e5bcf4b /aberth/polygen.h
parentccade8e6ed96fb48b329d22aaa4c8d0826b3c8d1 (diff)
More reorganisation
Diffstat (limited to 'aberth/polygen.h')
-rw-r--r--aberth/polygen.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/aberth/polygen.h b/aberth/polygen.h
new file mode 100644
index 0000000..1381444
--- /dev/null
+++ b/aberth/polygen.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <vector>
+#include "poly.h"
+
+using namespace std;
+
+
+namespace PolyGen {
+ struct Job {
+ Poly init;
+ int numItems;
+ };
+
+ namespace Derbyshire {
+ // Returns whether we just looped around
+ bool next(Poly &poly);
+
+ Poly atIndex(int index);
+
+ vector<Job> genJobs(int targetJobs);
+ }
+
+ using namespace Derbyshire;
+}