CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
lumi::service::ISessionProxyPtr Class Reference

#include <DBService.h>

Public Member Functions

 ISessionProxyPtr (std::unique_ptr< coral::ISessionProxy > iProxy, std::unique_lock< std::mutex > iLock)
 
coral::ISessionProxy * operator-> ()
 

Private Attributes

std::unique_lock< std::mutexm_lock
 
std::unique_ptr
< coral::ISessionProxy > 
m_proxy
 

Detailed Description

Definition at line 16 of file DBService.h.

Constructor & Destructor Documentation

lumi::service::ISessionProxyPtr::ISessionProxyPtr ( std::unique_ptr< coral::ISessionProxy >  iProxy,
std::unique_lock< std::mutex iLock 
)
inline

Definition at line 18 of file DBService.h.

19  : m_lock(std::move(iLock)), m_proxy(std::move(iProxy)) {}
std::unique_ptr< coral::ISessionProxy > m_proxy
Definition: DBService.h:25
def move
Definition: eostools.py:511
std::unique_lock< std::mutex > m_lock
Definition: DBService.h:24

Member Function Documentation

coral::ISessionProxy* lumi::service::ISessionProxyPtr::operator-> ( )
inline

Definition at line 21 of file DBService.h.

References m_proxy.

21 { return m_proxy.get(); }
std::unique_ptr< coral::ISessionProxy > m_proxy
Definition: DBService.h:25

Member Data Documentation

std::unique_lock<std::mutex> lumi::service::ISessionProxyPtr::m_lock
private

Definition at line 24 of file DBService.h.

std::unique_ptr<coral::ISessionProxy> lumi::service::ISessionProxyPtr::m_proxy
private

Definition at line 25 of file DBService.h.

Referenced by operator->().