diff options
Diffstat (limited to 'aberth/polygen.h')
-rw-r--r-- | aberth/polygen.h | 25 |
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; +} |