LibreOffice Module sc (master)  1
Public Member Functions | Public Attributes | List of all members
ScMutationGuard Struct Reference

A pretty assertion that checks that the relevant bits in the are not set on the document at entry and exit. More...

#include <document.hxx>

Collaboration diagram for ScMutationGuard:
[legend]

Public Member Functions

 ScMutationGuard (ScDocument &rDocument, ScMutationGuardFlags nFlags)
 
 ~ScMutationGuard ()
 

Public Attributes

size_t mnFlags
 
ScDocumentmrDocument
 

Detailed Description

A pretty assertion that checks that the relevant bits in the are not set on the document at entry and exit.

Its primary use is for debugging threading. As such, an is created to forbid mutation, and this condition is then asserted on at prominent sites that mutate .

Definition at line 2755 of file document.hxx.

Constructor & Destructor Documentation

ScMutationGuard::ScMutationGuard ( ScDocument rDocument,
ScMutationGuardFlags  nFlags 
)
inline

Definition at line 2758 of file document.hxx.

References mnFlags, ScDocument::mnMutationGuardFlags, and mrDocument.

ScMutationGuard::~ScMutationGuard ( )
inline

Definition at line 2765 of file document.hxx.

References mnFlags, ScDocument::mnMutationGuardFlags, and mrDocument.

Member Data Documentation

size_t ScMutationGuard::mnFlags

Definition at line 2769 of file document.hxx.

Referenced by ScMutationGuard(), and ~ScMutationGuard().

ScDocument& ScMutationGuard::mrDocument

Definition at line 2770 of file document.hxx.

Referenced by ScMutationGuard(), and ~ScMutationGuard().


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