refactor and reuse Automatas. TODO : add test for automatas

This commit is contained in:
IlyaShurupov 2024-02-06 17:18:19 +03:00 committed by Ilya Shurupov
parent 184f8dd1fe
commit 8f38095bec
3 changed files with 166 additions and 318 deletions

View file

@ -299,6 +299,14 @@ namespace tp {
}
}
void transferNodes(List in) {
removeAll();
for (auto node : in) {
attach(node);
}
in.detachAll();
}
public:
template <class tArchiver>
void archiveWrite(tArchiver& ar) const {