CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DataProxy< RecordT, DataT > Class Template Reference

#include <FWCore/Framework/interface/DataProxy.h>

Inheritance diagram for DataProxy< RecordT, DataT >:
edm::eventsetup::DataProxyTemplate< RecordT, DataT > edm::eventsetup::DataProxy

Public Types

typedef boost::shared_ptr
< cond::PayloadProxy< DataT > > 
DataP
 
typedef DataProxy< RecordT, DataT > self
 
- Public Types inherited from edm::eventsetup::DataProxyTemplate< RecordT, DataT >
typedef RecordT record_type
 
typedef DataT value_type
 

Public Member Functions

 DataProxy (boost::shared_ptr< cond::PayloadProxy< DataT > > pdata)
 
- Public Member Functions inherited from edm::eventsetup::DataProxyTemplate< RecordT, DataT >
 DataProxyTemplate ()
 
virtual const void * getImpl (const EventSetupRecord &iRecord, const DataKey &iKey)
 
- Public Member Functions inherited from edm::eventsetup::DataProxy
bool cacheIsValid () const
 
 DataProxy ()
 
void doGet (EventSetupRecord const &iRecord, DataKey const &iKey, bool iTransiently) const
 
void const * get (EventSetupRecord const &, DataKey const &iKey, bool iTransiently) const
 
void invalidate ()
 
ComponentDescription const * providerDescription () const
 returns the description of the DataProxyProvider which owns this Proxy More...
 
void resetIfTransient ()
 
void setProviderDescription (ComponentDescription const *iDesc)
 
virtual ~DataProxy ()
 

Protected Member Functions

virtual void invalidateCache ()
 
virtual void invalidateTransientCache ()
 
virtual const DataT * make (const RecordT &, const edm::eventsetup::DataKey &)
 
- Protected Member Functions inherited from edm::eventsetup::DataProxy
void clearCacheIsValid ()
 

Private Member Functions

const DataProxyoperator= (const DataProxy &)
 

Private Attributes

boost::shared_ptr
< cond::PayloadProxy< DataT > > 
m_data
 

Detailed Description

template<class RecordT, class DataT>
class DataProxy< RecordT, DataT >

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.

Member Typedef Documentation

template<class RecordT , class DataT >
typedef boost::shared_ptr<cond::PayloadProxy<DataT> > DataProxy< RecordT, DataT >::DataP

Definition at line 17 of file DataProxy.h.

template<class RecordT , class DataT >
typedef DataProxy<RecordT,DataT> DataProxy< RecordT, DataT >::self

Definition at line 16 of file DataProxy.h.

Constructor & Destructor Documentation

template<class RecordT , class DataT >
DataProxy< RecordT, DataT >::DataProxy ( boost::shared_ptr< cond::PayloadProxy< DataT > >  pdata)
inlineexplicit

Definition at line 19 of file DataProxy.h.

19  : m_data(pdata) {
20 
21  }
boost::shared_ptr< cond::PayloadProxy< DataT > > m_data
Definition: DataProxy.h:47

Member Function Documentation

template<class RecordT , class DataT >
virtual void DataProxy< RecordT, DataT >::invalidateCache ( )
inlineprotectedvirtual

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.

35  {
36  // don't, preserve data for future access
37  // m_data->invalidateCache();
38  }
template<class RecordT , class DataT >
virtual void DataProxy< RecordT, DataT >::invalidateTransientCache ( )
inlineprotectedvirtual

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.

39  {
40  m_data->invalidateCache();
41  }
boost::shared_ptr< cond::PayloadProxy< DataT > > m_data
Definition: DataProxy.h:47
template<class RecordT , class DataT >
virtual const DataT* DataProxy< RecordT, DataT >::make ( const RecordT &  ,
const edm::eventsetup::DataKey  
)
inlineprotectedvirtual

Implements edm::eventsetup::DataProxyTemplate< RecordT, DataT >.

Definition at line 31 of file DataProxy.h.

References DataProxy< RecordT, DataT >::m_data.

31  {
32  m_data->make();
33  return &(*m_data)();
34  }
boost::shared_ptr< cond::PayloadProxy< DataT > > m_data
Definition: DataProxy.h:47
template<class RecordT , class DataT >
const DataProxy& DataProxy< RecordT, DataT >::operator= ( const DataProxy< RecordT, DataT > &  )
private

Member Data Documentation

template<class RecordT , class DataT >
boost::shared_ptr<cond::PayloadProxy<DataT> > DataProxy< RecordT, DataT >::m_data
private