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

◆ ISessionProxyPtr()

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
std::unique_lock< std::mutex > m_lock
Definition: DBService.h:24
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ operator->()

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

◆ m_lock

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

Definition at line 24 of file DBService.h.

◆ m_proxy

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

Definition at line 25 of file DBService.h.

Referenced by operator->().