|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
Scoped write access that coalesces nested DOM mutation revision bumps. More...
#include "donner/svg/DocumentState.h"
Public Member Functions | |
| DocumentMutationBatch (DocumentState &documentState, bool commitOnScopeExit=false) | |
| Create a mutation batch for a document. | |
| DocumentMutationBatch (const DocumentMutationBatch &other)=delete | |
| Copying mutation batches is not allowed. | |
| DocumentMutationBatch (DocumentMutationBatch &&other) noexcept | |
| Moving mutation batches transfers the held batch. | |
| ~DocumentMutationBatch () | |
| Destructor, flushing a single revision bump if the batch mutated the document. | |
| DocumentMutationBatch & | operator= (const DocumentMutationBatch &other)=delete |
| Copying mutation batches is not allowed. | |
| DocumentMutationBatch & | operator= (DocumentMutationBatch &&other) noexcept=delete |
| Moving mutation batches by assignment is not needed by callers. | |
| DocumentWriteAccess & | access () |
| Get the underlying write access. | |
| const DocumentWriteAccess & | access () const |
| Get the underlying write access. | |
| void | cancel () |
| Cancel the automatic revision commit for this mutation scope. | |
Scoped write access that coalesces nested DOM mutation revision bumps.
|
inlineexplicit |
Create a mutation batch for a document.
| documentState | Document state being mutated. |
| commitOnScopeExit | If true, commit one mutation revision when this scope exits. |