LibreOffice Module comphelper (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
comphelper::ComponentMethodGuard Class Reference

#include <componentbase.hxx>

Public Types

enum class  MethodType {
  Default ,
  WithoutInit
}
 

Public Member Functions

 ComponentMethodGuard (ComponentBase &_rComponent, const MethodType _eType=MethodType::Default)
 
void clear ()
 

Private Attributes

osl::ClearableMutexGuard m_aMutexGuard
 

Detailed Description

Definition at line 104 of file componentbase.hxx.

Member Enumeration Documentation

◆ MethodType

Enumerator
Default 

allow the method to be called only when being initialized and not being disposed

WithoutInit 

allow the method to be called without being initialized

Definition at line 107 of file componentbase.hxx.

Constructor & Destructor Documentation

◆ ComponentMethodGuard()

comphelper::ComponentMethodGuard::ComponentMethodGuard ( ComponentBase _rComponent,
const MethodType  _eType = MethodType::Default 
)
inline

Member Function Documentation

◆ clear()

void comphelper::ComponentMethodGuard::clear ( )
inline

Definition at line 124 of file componentbase.hxx.

References m_aMutexGuard.

Member Data Documentation

◆ m_aMutexGuard

osl::ClearableMutexGuard comphelper::ComponentMethodGuard::m_aMutexGuard
private

Definition at line 130 of file componentbase.hxx.

Referenced by clear().


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