CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Member Functions

virtual void invalidateCache ()
 
const DataT & operator() () const
 
 PayloadProxy (cond::DbSession &session, bool errorPolicy, const char *source=0)
 
 PayloadProxy (cond::DbSession &session, const std::string &token, bool errorPolicy, const char *source=0)
 
virtual ~PayloadProxy ()
 
- Public Member Functions inherited from cond::BasePayloadProxy
 BasePayloadProxy (cond::DbSession &session, bool errorPolicy)
 
 BasePayloadProxy (cond::DbSession &session, const std::string &token, bool errorPolicy)
 
IOVProxy const & iov () const
 
bool isValid () const
 
cond::ValidityInterval loadFor (cond::Time_t time)
 
cond::ValidityInterval loadFor (size_t n)
 
void loadIov (const std::string iovToken)
 
virtual void loadMore (CondGetter const &)
 
void loadTag (const std::string tag)
 
void make ()
 
bool refresh ()
 
bool refresh (cond::DbSession &newSession)
 
cond::ValidityInterval setIntervalFor (cond::Time_t time)
 
TimeType timetype () const
 
std::string const & token () const
 
virtual ~BasePayloadProxy ()
 

Protected Member Functions

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

Private Attributes

cond::PayloadRef< DataT > m_data
 

Additional Inherited Members

- Public Types inherited from cond::BasePayloadProxy
typedef std::vector< ObjIdObjIds
 
- Public Attributes inherited from cond::BasePayloadProxy
Stats stats
 
- Protected Attributes inherited from cond::BasePayloadProxy
bool m_doThrow
 
IOVElementProxy m_element
 
IOVProxy m_iov
 
DbSession m_session
 
std::string m_token
 

Detailed Description

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

Definition at line 111 of file PayloadProxy.h.

Constructor & Destructor Documentation

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

Definition at line 114 of file PayloadProxy.h.

116  :
117  BasePayloadProxy(session, errorPolicy) {}
BasePayloadProxy(cond::DbSession &session, bool errorPolicy)
Definition: PayloadProxy.cc:22
template<typename DataT>
cond::PayloadProxy< DataT >::PayloadProxy ( cond::DbSession session,
const std::string &  token,
bool  errorPolicy,
const char *  source = 0 
)
inline

Definition at line 119 of file PayloadProxy.h.

122  :
123  BasePayloadProxy(session, token, errorPolicy) {}
BasePayloadProxy(cond::DbSession &session, bool errorPolicy)
Definition: PayloadProxy.cc:22
std::string const & token() const
Definition: PayloadProxy.h:63
template<typename DataT>
virtual cond::PayloadProxy< DataT >::~PayloadProxy ( )
inlinevirtual

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

Definition at line 125 of file PayloadProxy.h.

125 {}

Member Function Documentation

template<typename DataT>
virtual void cond::PayloadProxy< DataT >::invalidateCache ( )
inlinevirtual

Implements cond::BasePayloadProxy.

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

Definition at line 132 of file PayloadProxy.h.

132  {
133  m_data.clear();
134  m_token.clear(); // in base....
135  }
cond::PayloadRef< DataT > m_data
Definition: PayloadProxy.h:144
template<typename DataT>
virtual bool cond::PayloadProxy< DataT >::load ( cond::DbSession session,
std::string const &  itoken 
)
inlineprotectedvirtual

Implements cond::BasePayloadProxy.

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

Definition at line 139 of file PayloadProxy.h.

Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().

139  {
140  return m_data.load(session,itoken);
141  }
cond::PayloadRef< DataT > m_data
Definition: PayloadProxy.h:144
template<typename DataT>
const DataT& cond::PayloadProxy< DataT >::operator() ( ) const
inline

Definition at line 128 of file PayloadProxy.h.

128  {
129  return (*m_data);
130  }
cond::PayloadRef< DataT > m_data
Definition: PayloadProxy.h:144

Member Data Documentation

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