1
0

add path struct

This commit is contained in:
2020-01-07 23:14:48 -05:00
parent 462ebf7c25
commit c5f87942c9
3 changed files with 39 additions and 7 deletions

View File

@@ -16,10 +16,26 @@ namespace tc {
Action(int from_idx, int gen);
};
struct Path {
std::vector<Action> path;
Path() = default;
Path(const Path &) = default;
void add_row();
[[nodiscard]] const Action get(int to_idx) const;
void put(int from_idx, int gen, int to_idx);
[[nodiscard]] size_t size() const;
};
struct Cosets {
int ngens;
std::vector<int> data;
std::vector<Action> path;
Path path;
Cosets(const Cosets &) = default;