CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
popcon::PopConSourceHandler< T >::Ref Class Reference

#include <PopConSourceHandler.h>

Public Member Functions

T const & operator* () const
 
T const * operator-> () const
 
Refoperator= (const Ref &ref)
 
T const * ptr () const
 
 Ref ()
 
 Ref (cond::persistency::Session &dbsession, const std::string &hash)
 
 Ref (const Ref &ref)
 
 ~Ref ()
 

Private Attributes

std::shared_ptr< Tm_d
 
cond::persistency::Session m_dbsession
 

Detailed Description

template<class T>
class popcon::PopConSourceHandler< T >::Ref

Definition at line 47 of file PopConSourceHandler.h.

Constructor & Destructor Documentation

◆ Ref() [1/3]

template<class T>
popcon::PopConSourceHandler< T >::Ref::Ref ( )
inline

Definition at line 49 of file PopConSourceHandler.h.

49 : m_dbsession() {}

◆ Ref() [2/3]

template<class T>
popcon::PopConSourceHandler< T >::Ref::Ref ( cond::persistency::Session dbsession,
const std::string &  hash 
)
inline

◆ ~Ref()

template<class T>
popcon::PopConSourceHandler< T >::Ref::~Ref ( )
inline

Definition at line 53 of file PopConSourceHandler.h.

53 {}

◆ Ref() [3/3]

template<class T>
popcon::PopConSourceHandler< T >::Ref::Ref ( const Ref ref)
inline

Definition at line 55 of file PopConSourceHandler.h.

55 : m_dbsession(ref.m_dbsession), m_d(ref.m_d) {}

Member Function Documentation

◆ operator*()

template<class T>
T const& popcon::PopConSourceHandler< T >::Ref::operator* ( ) const
inline

Definition at line 67 of file PopConSourceHandler.h.

67 { return *ptr(); }

References popcon::PopConSourceHandler< T >::Ref::ptr().

◆ operator->()

template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::operator-> ( ) const
inline

Definition at line 65 of file PopConSourceHandler.h.

65 { return ptr(); }

References popcon::PopConSourceHandler< T >::Ref::ptr().

◆ operator=()

template<class T>
Ref& popcon::PopConSourceHandler< T >::Ref::operator= ( const Ref ref)
inline

Definition at line 57 of file PopConSourceHandler.h.

57  {
58  m_dbsession = ref.m_dbsession;
59  m_d = ref.m_d;
60  return *this;
61  }

References popcon::PopConSourceHandler< T >::Ref::m_d, and popcon::PopConSourceHandler< T >::Ref::m_dbsession.

◆ ptr()

template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::ptr ( ) const
inline

Member Data Documentation

◆ m_d

template<class T>
std::shared_ptr<T> popcon::PopConSourceHandler< T >::Ref::m_d
private

◆ m_dbsession

template<class T>
cond::persistency::Session popcon::PopConSourceHandler< T >::Ref::m_dbsession
private
cond::hash
Definition: Time.h:19
popcon::PopConSourceHandler::Ref::ptr
T const * ptr() const
Definition: PopConSourceHandler.h:63
cond::persistency::Session::fetchPayload
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Definition: Session.h:213
popcon::PopConSourceHandler::Ref::m_d
std::shared_ptr< T > m_d
Definition: PopConSourceHandler.h:71
popcon::PopConSourceHandler::Ref::m_dbsession
cond::persistency::Session m_dbsession
Definition: PopConSourceHandler.h:70
T
long double T
Definition: Basic3DVectorLD.h:48