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 *pDocument, ScMutationGuardFlags nFlags)
 
 ~ScMutationGuard ()
 

Public Attributes

size_t mnFlags
 
ScDocumentmpDocument
 

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 2632 of file document.hxx.

Constructor & Destructor Documentation

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

Definition at line 2634 of file document.hxx.

References assert(), mnFlags, ScDocument::mnMutationGuardFlags, mpDocument, and void().

ScMutationGuard::~ScMutationGuard ( )
inline

Definition at line 2645 of file document.hxx.

References assert(), mnFlags, ScDocument::mnMutationGuardFlags, and mpDocument.

Member Data Documentation

size_t ScMutationGuard::mnFlags

Definition at line 2649 of file document.hxx.

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

ScDocument* ScMutationGuard::mpDocument

Definition at line 2650 of file document.hxx.

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


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