aboutsummaryrefslogtreecommitdiff
path: root/aberth/polygen.h
blob: 1381444b335110ff8dfab1d9c001c2b6a11960bf (plain)
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
#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;
}