refactor and reuse Automatas. TODO : add test for automatas
This commit is contained in:
parent
312419936e
commit
93b02416de
3 changed files with 166 additions and 318 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue