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

Scoped write access to a DocumentState. More...

#include "donner/svg/DocumentState.h"

Public Member Functions

 DocumentWriteAccess (DocumentState &documentState)
 Create a write access guard.
 DocumentWriteAccess (const DocumentWriteAccess &other)=delete
 Copying access guards is not allowed.
 DocumentWriteAccess (DocumentWriteAccess &&other) noexcept
 Moving access guards transfers the held access.
 ~DocumentWriteAccess ()
 Destructor, releasing the held access.
DocumentWriteAccessoperator= (const DocumentWriteAccess &other)=delete
 Copying access guards is not allowed.
DocumentWriteAccessoperator= (DocumentWriteAccess &&other) noexcept=delete
 Moving access guards by assignment is not needed by callers.
DocumentStatedocumentState () const
 Get the guarded document state.
Registryregistry () const
 Get the guarded registry.
void bumpMutationRevision () const
 Mark the guarded document as mutated.

Detailed Description

Scoped write access to a DocumentState.

Constructor & Destructor Documentation

◆ DocumentWriteAccess()

donner::svg::DocumentWriteAccess::DocumentWriteAccess ( DocumentState & documentState)
inlineexplicit

Create a write access guard.

Parameters
documentStateDocument state being accessed.

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