Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::DocumentMutationBatch Class Reference

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.
DocumentMutationBatchoperator= (const DocumentMutationBatch &other)=delete
 Copying mutation batches is not allowed.
DocumentMutationBatchoperator= (DocumentMutationBatch &&other) noexcept=delete
 Moving mutation batches by assignment is not needed by callers.
DocumentWriteAccessaccess ()
 Get the underlying write access.
const DocumentWriteAccessaccess () const
 Get the underlying write access.
void cancel ()
 Cancel the automatic revision commit for this mutation scope.

Detailed Description

Scoped write access that coalesces nested DOM mutation revision bumps.

Constructor & Destructor Documentation

◆ DocumentMutationBatch()

donner::svg::DocumentMutationBatch::DocumentMutationBatch ( DocumentState & documentState,
bool commitOnScopeExit = false )
inlineexplicit

Create a mutation batch for a document.

Parameters
documentStateDocument state being mutated.
commitOnScopeExitIf true, commit one mutation revision when this scope exits.

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