Loading...
Searching...
No Matches
score::SelectionStack::Batch Class Reference

Detailed Description

While a batch is open, prune() only records the destroyed object. The stack is swept once when the outermost batch ends, with a single currentSelectionChanged: destroying k selected objects out of n costs O(n) instead of O(k * n).

Inside a batch, the stack may still hold the recorded objects until the next mutation (push, unselect, ...), which sweeps first; currentSelection() already leaves them out.

Public Member Functions

 Batch (SelectionStack &s) noexcept
 
 Batch (const Batch &)=delete
 
Batch & operator= (const Batch &)=delete
 

The documentation for this class was generated from the following file: