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 50 of file PopConSourceHandler.h.

Constructor & Destructor Documentation

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

Definition at line 52 of file PopConSourceHandler.h.

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

Definition at line 53 of file PopConSourceHandler.h.

References cond::hash.

53  :
54  m_dbsession(dbsession){
56  }
cond::persistency::Session m_dbsession
long double T
std::shared_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Definition: Session.h:215
template<class T>
popcon::PopConSourceHandler< T >::Ref::~Ref ( )
inline

Definition at line 57 of file PopConSourceHandler.h.

57  {
58  }
template<class T>
popcon::PopConSourceHandler< T >::Ref::Ref ( const Ref ref)
inline

Definition at line 60 of file PopConSourceHandler.h.

60  :
61  m_dbsession(ref.m_dbsession), m_d(ref.m_d) {
62  }
cond::persistency::Session m_dbsession

Member Function Documentation

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

Definition at line 78 of file PopConSourceHandler.h.

78  {
79  return *ptr();
80  }
template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::operator-> ( ) const
inline

Definition at line 74 of file PopConSourceHandler.h.

74  {
75  return ptr();
76  }
template<class T>
Ref& popcon::PopConSourceHandler< T >::Ref::operator= ( const Ref ref)
inline

Definition at line 64 of file PopConSourceHandler.h.

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

64  {
65  m_dbsession = ref.m_dbsession;
66  m_d = ref.m_d;
67  return *this;
68  }
cond::persistency::Session m_dbsession
template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::ptr ( ) const
inline

Definition at line 70 of file PopConSourceHandler.h.

70  {
71  return m_d.get();
72  }

Member Data Documentation

template<class T>
std::shared_ptr<T> popcon::PopConSourceHandler< T >::Ref::m_d
private
template<class T>
cond::persistency::Session popcon::PopConSourceHandler< T >::Ref::m_dbsession
private