degrade History and it's not template now

because there's no need to make command type a template parameter
This commit is contained in:
2022-08-12 14:05:06 +09:00
parent 972f5ce0a1
commit d3f245381b
7 changed files with 34 additions and 29 deletions

View File

@@ -130,7 +130,7 @@ class Network final : public nf7::File,
private:
ItemId next_ = 1;
nf7::SquashedHistory<nf7::History::Command> history_;
nf7::SquashedHistory history_;
std::unordered_map<ItemId, Item*> item_map_;
std::unordered_map<const Node*, Item*> node_map_;

View File

@@ -103,7 +103,7 @@ class TL final : public nf7::File, public nf7::DirItem, public nf7::Node {
}
private:
nf7::SquashedHistory<History::Command> history_;
nf7::SquashedHistory history_;
std::shared_ptr<TL::Lambda> lambda_;
std::vector<std::weak_ptr<TL::Lambda>> lambdas_running_;