CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

cond::PayloadProxy< DataT > Class Template Reference

#include <PayloadProxy.h>

Inheritance diagram for cond::PayloadProxy< DataT >:
cond::BasePayloadProxy

List of all members.

Public Member Functions

virtual void invalidateCache ()
const DataT & operator() () const
 PayloadProxy (cond::DbSession &session, const std::string &token, bool errorPolicy, const char *source=0)
 PayloadProxy (cond::DbSession &session, bool errorPolicy, const char *source=0)
virtual ~PayloadProxy ()

Protected Member Functions

virtual bool load (cond::DbSession &session, std::string const &itoken)

Private Attributes

cond::PayloadRef< DataT > m_data

Detailed Description

template<typename DataT>
class cond::PayloadProxy< DataT >

Definition at line 110 of file PayloadProxy.h.


Constructor & Destructor Documentation

template<typename DataT>
cond::PayloadProxy< DataT >::PayloadProxy ( cond::DbSession session,
bool  errorPolicy,
const char *  source = 0 
) [inline]

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 113 of file PayloadProxy.h.

                                        :
      BasePayloadProxy(session, errorPolicy) {}
template<typename DataT>
cond::PayloadProxy< DataT >::PayloadProxy ( cond::DbSession session,
const std::string &  token,
bool  errorPolicy,
const char *  source = 0 
) [inline]

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 118 of file PayloadProxy.h.

                                        :
      BasePayloadProxy(session, token, errorPolicy) {}
template<typename DataT>
virtual cond::PayloadProxy< DataT >::~PayloadProxy ( ) [inline, virtual]

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 124 of file PayloadProxy.h.

{}

Member Function Documentation

template<typename DataT>
virtual void cond::PayloadProxy< DataT >::invalidateCache ( ) [inline, virtual]

Implements cond::BasePayloadProxy.

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 131 of file PayloadProxy.h.

Referenced by cond::PayloadProxy< cond::KeyList >::invalidateCache().

                                   {
      m_data.clear();
      m_token.clear(); // in base....
    }
template<typename DataT>
virtual bool cond::PayloadProxy< DataT >::load ( cond::DbSession session,
std::string const &  itoken 
) [inline, protected, virtual]

Implements cond::BasePayloadProxy.

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 138 of file PayloadProxy.h.

Referenced by cond::PayloadProxy< cond::KeyList >::load().

                                                                        {
      return m_data.load(session,itoken);
    }
template<typename DataT>
const DataT& cond::PayloadProxy< DataT >::operator() ( ) const [inline]

Reimplemented in cond::PayloadProxy< cond::KeyList >.

Definition at line 127 of file PayloadProxy.h.

                                     {
      return (*m_data); 
    }

Member Data Documentation

template<typename DataT>
cond::PayloadRef<DataT> cond::PayloadProxy< DataT >::m_data [private]