#include <FWCore/Framework/interface/DataProxy.h>
Public Types | |
typedef boost::shared_ptr < cond::PayloadProxy< DataT > > | DataP |
typedef DataProxy< RecordT, DataT > | self |
Public Member Functions | |
DataProxy (boost::shared_ptr< cond::PayloadProxy< DataT > > pdata) | |
Protected Member Functions | |
virtual void | invalidateCache () |
virtual void | invalidateTransientCache () |
virtual const DataT * | make (const RecordT &, const edm::eventsetup::DataKey &) |
Private Member Functions | |
const DataProxy & | operator= (const DataProxy &) |
Private Attributes | |
boost::shared_ptr < cond::PayloadProxy< DataT > > | m_data |
Description: Base class for data Proxies held by a EventSetupRecord
Usage: This class defines the interface used to handle retrieving data from an EventSetup Record.
Definition at line 14 of file DataProxy.h.
typedef boost::shared_ptr<cond::PayloadProxy<DataT> > DataProxy< RecordT, DataT >::DataP |
Definition at line 17 of file DataProxy.h.
typedef DataProxy<RecordT,DataT> DataProxy< RecordT, DataT >::self |
Definition at line 16 of file DataProxy.h.
DataProxy< RecordT, DataT >::DataProxy | ( | boost::shared_ptr< cond::PayloadProxy< DataT > > | pdata | ) | [inline, explicit] |
Definition at line 19 of file DataProxy.h.
: m_data(pdata) { }
virtual void DataProxy< RecordT, DataT >::invalidateCache | ( | ) | [inline, protected, virtual] |
indicates that the Proxy should invalidate any cached information as that information has 'expired' (i.e. we have moved to a new IOV)
Implements edm::eventsetup::DataProxy.
Definition at line 35 of file DataProxy.h.
{ // don't, preserve data for future access // m_data->invalidateCache(); }
virtual void DataProxy< RecordT, DataT >::invalidateTransientCache | ( | ) | [inline, protected, virtual] |
indicates that the Proxy should invalidate any cached information as that information was accessed transiently and therefore is not intended to be kept over the entire IOV. Default is to call invalidateCache().
Reimplemented from edm::eventsetup::DataProxy.
Definition at line 39 of file DataProxy.h.
References DataProxy< RecordT, DataT >::m_data.
{ m_data->invalidateCache(); }
virtual const DataT* DataProxy< RecordT, DataT >::make | ( | const RecordT & | , |
const edm::eventsetup::DataKey & | |||
) | [inline, protected, virtual] |
Implements edm::eventsetup::DataProxyTemplate< RecordT, DataT >.
Definition at line 31 of file DataProxy.h.
References DataProxy< RecordT, DataT >::m_data.
{ m_data->make(); return &(*m_data)(); }
const DataProxy& DataProxy< RecordT, DataT >::operator= | ( | const DataProxy< RecordT, DataT > & | ) | [private] |
boost::shared_ptr<cond::PayloadProxy<DataT> > DataProxy< RecordT, DataT >::m_data [private] |
Definition at line 47 of file DataProxy.h.
Referenced by DataProxy< RecordT, DataT >::invalidateTransientCache(), and DataProxy< RecordT, DataT >::make().