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
 
- Static Public Attributes inherited from cond::BasePayloadProxy
static Stats gstats = {0,0,0,0,0,0,0}
 
- 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 113 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 116 of file PayloadProxy.h.

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

Definition at line 121 of file PayloadProxy.h.

124  :
125  BasePayloadProxy(session, token, errorPolicy) {}
BasePayloadProxy(cond::DbSession &session, bool errorPolicy)
Definition: PayloadProxy.cc:25
std::string const & token() const
Definition: PayloadProxy.h:65
template<typename DataT>
virtual cond::PayloadProxy< DataT >::~PayloadProxy ( )
inlinevirtual

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

Definition at line 127 of file PayloadProxy.h.

127 {}

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 134 of file PayloadProxy.h.

134  {
135  m_data.clear();
136  m_token.clear(); // in base....
137  }
cond::PayloadRef< DataT > m_data
Definition: PayloadProxy.h:146
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 141 of file PayloadProxy.h.

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

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

Definition at line 130 of file PayloadProxy.h.

130  {
131  return (*m_data);
132  }
cond::PayloadRef< DataT > m_data
Definition: PayloadProxy.h:146

Member Data Documentation

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