![]() |
![]() |
#include <Callback.h>
Public Types | |
using | method_type = TReturn(T ::*)(const TRecord &) |
Public Member Functions | |
Callback (const Callback &)=delete | |
Callback (T *iProd, method_type iMethod, unsigned int iID, const TDecorator &iDec=TDecorator()) | |
Callback * | clone () |
ESProxyIndex const * | getTokenIndices () const |
template<class DataT > | |
void | holdOntoPointer (DataT *iData) |
void | newRecordComing () |
const Callback & | operator= (const Callback &)=delete |
void | prefetchAsync (WaitingTask *iTask, EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl, ServiceToken const &token) |
template<class RemainingContainerT , class DataT , class ProductsT > | |
void | setData (ProductsT &iProducts) |
void | storeReturnedValues (TReturn iReturn) |
unsigned int | transitionID () const |
Private Member Functions | |
bool | handleMayGet (EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl) |
void | prefetchNeededDataAsync (WaitingTask *task, EventSetupImpl const *iImpl, ESProxyIndex const *proxies, edm::ServiceToken const &token) const |
void | runProducerAsync (std::exception_ptr const *iExcept, EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl, ServiceToken const &token) |
Private Attributes | |
TDecorator | decorator_ |
const unsigned int | id_ |
method_type | method_ |
std::optional< std::vector< ESProxyIndex > > | postMayGetProxies_ |
edm::propagate_const< T * > | producer_ |
std::array< void *, produce::size< TReturn >::value > | proxyData_ |
edm::WaitingTaskList | taskList_ |
std::atomic< bool > | wasCalledForThisRecord_ |
Description: Functional object used as the 'callback' for the CallbackProxy
Usage: <usage>
Definition at line 52 of file Callback.h.
using edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_type = TReturn (T ::*)(const TRecord&) |
Definition at line 54 of file Callback.h.
|
inline |
Definition at line 56 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone().
|
delete |
|
inline |
Definition at line 64 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::Callback(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::decorator_, edm::propagate_const< T >::get(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_.
|
inline |
Definition at line 135 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inlineprivate |
Definition at line 153 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID().
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 110 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::proxyData_.
|
inline |
Definition at line 129 of file Callback.h.
References edm::WaitingTaskList::reset(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
delete |
|
inline |
Definition at line 69 of file Callback.h.
References edm::WaitingTaskList::add(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::make_waiting_task(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync(), TrackValidation_cff::task, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
inlineprivate |
Definition at line 138 of file Callback.h.
References edm::EventSetupImpl::findImpl(), h, mps_fire::i, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, dqmiodumpmetadata::n, edm::eventsetup::EventSetupRecordImpl::prefetchAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, TrackValidation_cff::task, and unpackBuffers-CaloStage2::token.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inlineprivate |
Definition at line 161 of file Callback.h.
References cms::Exception::addContext(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::decorator_, edmLumisInFiles::description, edm::WaitingTaskList::doneWaiting(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::storeReturnedValues(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID(), and edm::convertException::wrap().
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 120 of file Callback.h.
References edm::eventsetup::moveFromTo(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::proxyData_, and groupFilesInBlocks::temp.
|
inline |
Definition at line 114 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inline |
Definition at line 134 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 204 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 202 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID().
|
private |
Definition at line 200 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 197 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 198 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 196 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::holdOntoPointer(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::setData().
|
private |
Definition at line 199 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::newRecordComing(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 203 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::newRecordComing(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().