CMS 3D CMS Logo

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  :
20  m_lock(std::move(iLock)),
21  m_proxy(std::move(iProxy)) {}
std::unique_ptr< coral::ISessionProxy > m_proxy
Definition: DBService.h:28
std::unique_lock< std::mutex > m_lock
Definition: DBService.h:27
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

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

Definition at line 23 of file DBService.h.

References m_proxy.

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

Member Data Documentation

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

Definition at line 27 of file DBService.h.

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

Definition at line 28 of file DBService.h.

Referenced by operator->().