LibreOffice Module dbaccess (master) 1
|
a guard for public methods of objects dependent on an ODatabaseModelImpl instance More...
#include <ModelImpl.hxx>
Public Member Functions | |
ModelMethodGuard (const ModelDependentComponent &_component) | |
constructs the guard More... | |
void | clear () |
void | reset () |
Private Attributes | |
SolarMutexResettableGuard | m_SolarGuard |
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.
|
inlineexplicit |
constructs the guard
_component | the component whose functionality depends on an ODatabaseModelImpl instance |
css::lang::DisposedException | If the given component is already disposed |
Definition at line 527 of file ModelImpl.hxx.
References dbaccess::ModelDependentComponent::checkDisposed().
|
inline |
Definition at line 532 of file ModelImpl.hxx.
References m_SolarGuard.
Referenced by dbaccess::DocumentGuard::clear().
|
inline |
Definition at line 538 of file ModelImpl.hxx.
References m_SolarGuard.
Referenced by dbaccess::DocumentGuard::reset().
|
private |
Definition at line 516 of file ModelImpl.hxx.