#include <FWCore/Framework/interface/ESWatcher.h>
Public Member Functions | |
bool | check (const edm::EventSetup &iSetup) |
template<class TObj, class TMemFunc> | |
ESWatcher (TObj &iObj, TMemFunc iFunc) | |
template<class TFunc> | |
ESWatcher (TFunc iFunctor) | |
ESWatcher () | |
Private Member Functions | |
ESWatcher (const ESWatcher &) | |
const ESWatcher & | operator= (const ESWatcher &) |
Private Attributes | |
unsigned long long | cacheId_ |
boost::function< void(const T &)> | callback_ |
Classes | |
struct | NullFunction |
Definition at line 33 of file ESWatcher.h.
edm::ESWatcher< T >::ESWatcher | ( | ) | [inline] |
edm::ESWatcher< T >::ESWatcher | ( | TObj & | iObj, | |
TMemFunc | iFunc | |||
) | [inline] |
Definition at line 48 of file ESWatcher.h.
00048 : 00049 callback_(boost::bind(iFunc,iObj,_1)), 00050 cacheId_(0) 00051 {} //virtual ~ESWatcher();
edm::ESWatcher< T >::ESWatcher | ( | const ESWatcher< T > & | ) | [private] |
bool edm::ESWatcher< T >::check | ( | const edm::EventSetup & | iSetup | ) | [inline] |
Definition at line 59 of file ESWatcher.h.
Referenced by VisEventSetup::analyze(), CSCConditions::initializeEvent(), VisEventSetupService::onNewEvent(), RPCPackingModule::produce(), RPCUnpackingModule::produce(), and SiPixelRawToDigi::produce().
00059 { 00060 const T& record = iSetup.template get<T>(); 00061 bool result = cacheId_ != record.cacheIdentifier(); 00062 if(result) { 00063 callback_(record); 00064 } 00065 cacheId_ = record.cacheIdentifier(); 00066 return result; 00067 }
const ESWatcher& edm::ESWatcher< T >::operator= | ( | const ESWatcher< T > & | ) | [private] |
unsigned long long edm::ESWatcher< T >::cacheId_ [private] |
Definition at line 75 of file ESWatcher.h.
Referenced by edm::ESWatcher< TrackerDigiGeometryRecord >::check().
boost::function<void (const T&)> edm::ESWatcher< T >::callback_ [private] |
Definition at line 74 of file ESWatcher.h.
Referenced by edm::ESWatcher< TrackerDigiGeometryRecord >::check().