CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::DbSession &dbsession, std::string token)
 
 Ref (const Ref &ref)
 
 ~Ref ()
 

Private Attributes

boost::shared_ptr< Tm_d
 
cond::DbSession m_dbsession
 

Detailed Description

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

Definition at line 53 of file PopConSourceHandler.h.

Constructor & Destructor Documentation

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

Definition at line 55 of file PopConSourceHandler.h.

template<class T>
popcon::PopConSourceHandler< T >::Ref::Ref ( cond::DbSession dbsession,
std::string  token 
)
inline

Definition at line 56 of file PopConSourceHandler.h.

References cond::DbSession::getTypedObject(), popcon::PopConSourceHandler< T >::Ref::m_d, and popcon::PopConSourceHandler< T >::Ref::m_dbsession.

56  :
57  m_dbsession(dbsession){
58  m_d = m_dbsession.getTypedObject<T>(token);
59  }
long double T
boost::shared_ptr< T > getTypedObject(const std::string &objectId)
Definition: DbSession.h:125
template<class T>
popcon::PopConSourceHandler< T >::Ref::~Ref ( )
inline

Definition at line 60 of file PopConSourceHandler.h.

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

Definition at line 63 of file PopConSourceHandler.h.

63  :
64  m_dbsession(ref.m_dbsession), m_d(ref.m_d) {
65  }

Member Function Documentation

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

Definition at line 81 of file PopConSourceHandler.h.

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

81  {
82  return *ptr();
83  }
template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::operator-> ( ) const
inline

Definition at line 77 of file PopConSourceHandler.h.

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

77  {
78  return ptr();
79  }
template<class T>
Ref& popcon::PopConSourceHandler< T >::Ref::operator= ( const Ref ref)
inline

Definition at line 67 of file PopConSourceHandler.h.

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

67  {
68  m_dbsession = ref.m_dbsession;
69  m_d = ref.m_d;
70  return *this;
71  }
template<class T>
T const* popcon::PopConSourceHandler< T >::Ref::ptr ( ) const
inline

Member Data Documentation

template<class T>
boost::shared_ptr<T> popcon::PopConSourceHandler< T >::Ref::m_d
private
template<class T>
cond::DbSession popcon::PopConSourceHandler< T >::Ref::m_dbsession
private