mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
Limit changed node count
This commit is contained in:
@@ -53,6 +53,25 @@ ApplyStateTable::apply (RawView& to) const
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ApplyStateTable::size ()
|
||||
{
|
||||
std::size_t ret = 0;
|
||||
for (auto& item : items_)
|
||||
{
|
||||
switch (item.second.first)
|
||||
{
|
||||
case Action::erase:
|
||||
case Action::insert:
|
||||
case Action::modify:
|
||||
++ret;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
ApplyStateTable::apply (OpenView& to,
|
||||
STTx const& tx, TER ter,
|
||||
|
||||
Reference in New Issue
Block a user