LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Attributes | List of all members
dbaccess::ModelMethodGuard Class Reference

a guard for public methods of objects dependent on an ODatabaseModelImpl instance More...

#include <ModelImpl.hxx>

Inheritance diagram for dbaccess::ModelMethodGuard:
[legend]
Collaboration diagram for dbaccess::ModelMethodGuard:
[legend]

Public Member Functions

 ModelMethodGuard (const ModelDependentComponent &_component)
 constructs the guard More...
 
void clear ()
 
void reset ()
 

Private Attributes

SolarMutexResettableGuard m_SolarGuard
 

Detailed Description

a guard for public methods of objects dependent on an ODatabaseModelImpl instance

Just put this guard onto the stack at the beginning of your method. Don't bother yourself with a MutexGuard, checks for being disposed, and the like.

Definition at line 512 of file ModelImpl.hxx.

Constructor & Destructor Documentation

◆ ModelMethodGuard()

dbaccess::ModelMethodGuard::ModelMethodGuard ( const ModelDependentComponent _component)
inlineexplicit

constructs the guard

Parameters
_componentthe component whose functionality depends on an ODatabaseModelImpl instance
Exceptions
css::lang::DisposedExceptionIf the given component is already disposed

Definition at line 527 of file ModelImpl.hxx.

References dbaccess::ModelDependentComponent::checkDisposed().

Member Function Documentation

◆ clear()

void dbaccess::ModelMethodGuard::clear ( )
inline

Definition at line 532 of file ModelImpl.hxx.

References m_SolarGuard.

Referenced by dbaccess::DocumentGuard::clear().

◆ reset()

void dbaccess::ModelMethodGuard::reset ( )
inline

Definition at line 538 of file ModelImpl.hxx.

References m_SolarGuard.

Referenced by dbaccess::DocumentGuard::reset().

Member Data Documentation

◆ m_SolarGuard

SolarMutexResettableGuard dbaccess::ModelMethodGuard::m_SolarGuard
private

Definition at line 516 of file ModelImpl.hxx.

Referenced by clear(), and reset().


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