CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ESGetToken< ESProduct, ESRecord > Class Template Reference

#include <EventSetup.h>

Public Member Functions

constexpr ESGetToken () noexcept=default
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > const &) noexcept=default
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > &&) noexcept=default
 
constexpr ESGetToken (ADAPTER &&iAdapter)
 
constexpr bool hasValidIndex () const noexcept
 
constexpr ESTokenIndex index () const noexcept
 
constexpr bool isInitialized () const noexcept
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > &&) noexcept=default
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > const &) noexcept=default
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ADAPTER &&iAdapter)
 
template<typename ADAPTER >
requires requires (ADAPTER &&a)
 
template<typename ADAPTER >
requires requires (ADAPTER &&a)
 
constexpr unsigned int transitionID () const noexcept
 

Static Public Member Functions

static constexpr ESTokenIndex invalidIndex () noexcept
 

Private Member Functions

constexpr ESGetToken (unsigned int transitionID, ESTokenIndex index, char const *productLabel) noexcept
 
constexpr char const * productLabel () const noexcept
 

Private Attributes

ESTokenIndex m_index {std::numeric_limits<int>::max()}
 
char const * m_productLabel {nullptr}
 
unsigned int m_transitionID {std::numeric_limits<unsigned int>::max()}
 

Friends

class EDConsumerBase
 
class ESConsumesCollector
 
class ESProducer
 
class EventSetup
 
class eventsetup::EventSetupRecord
 
class EventSetupImpl
 

Detailed Description

template<typename ESProduct, typename ESRecord>
class edm::ESGetToken< ESProduct, ESRecord >

Definition at line 46 of file EventSetup.h.

Constructor & Destructor Documentation

◆ ESGetToken() [1/5]

template<typename ESProduct, typename ESRecord>
constexpr edm::ESGetToken< ESProduct, ESRecord >::ESGetToken ( )
defaultnoexcept

◆ ESGetToken() [2/5]

template<typename ESProduct, typename ESRecord>
constexpr edm::ESGetToken< ESProduct, ESRecord >::ESGetToken ( ESGetToken< ESProduct, ESRecord > const &  )
defaultnoexcept

◆ ESGetToken() [3/5]

template<typename ESProduct, typename ESRecord>
constexpr edm::ESGetToken< ESProduct, ESRecord >::ESGetToken ( ESGetToken< ESProduct, ESRecord > &&  )
defaultnoexcept

◆ ESGetToken() [4/5]

template<typename ESProduct, typename ESRecord>
constexpr edm::ESGetToken< ESProduct, ESRecord >::ESGetToken ( ADAPTER &&  iAdapter)
inlineexplicit

Definition at line 53 of file ESGetToken.h.

53 : ESGetToken(iAdapter.template consumes<ESProduct, ESRecord>()) {}
constexpr ESGetToken() noexcept=default

◆ ESGetToken() [5/5]

template<typename ESProduct, typename ESRecord>
constexpr edm::ESGetToken< ESProduct, ESRecord >::ESGetToken ( unsigned int  transitionID,
ESTokenIndex  index,
char const *  productLabel 
)
inlineexplicitprivatenoexcept

Definition at line 69 of file ESGetToken.h.

ESTokenIndex m_index
Definition: ESGetToken.h:75
constexpr char const * productLabel() const noexcept
Definition: ESGetToken.h:72
char const * m_productLabel
Definition: ESGetToken.h:73
constexpr unsigned int transitionID() const noexcept
Definition: ESGetToken.h:62
unsigned int m_transitionID
Definition: ESGetToken.h:74
constexpr ESTokenIndex index() const noexcept
Definition: ESGetToken.h:64

Member Function Documentation

◆ hasValidIndex()

template<typename ESProduct, typename ESRecord>
constexpr bool edm::ESGetToken< ESProduct, ESRecord >::hasValidIndex ( ) const
inlinenoexcept

Definition at line 65 of file ESGetToken.h.

Referenced by edm::eventsetup::EventSetupRecord::getHandleImpl().

65 { return index() != invalidIndex(); }
static constexpr ESTokenIndex invalidIndex() noexcept
Definition: ESGetToken.h:66
constexpr ESTokenIndex index() const noexcept
Definition: ESGetToken.h:64

◆ index()

template<typename ESProduct, typename ESRecord>
constexpr ESTokenIndex edm::ESGetToken< ESProduct, ESRecord >::index ( ) const
inlinenoexcept

◆ invalidIndex()

template<typename ESProduct, typename ESRecord>
static constexpr ESTokenIndex edm::ESGetToken< ESProduct, ESRecord >::invalidIndex ( )
inlinestaticnoexcept

◆ isInitialized()

template<typename ESProduct, typename ESRecord>
constexpr bool edm::ESGetToken< ESProduct, ESRecord >::isInitialized ( ) const
inlinenoexcept

◆ operator=() [1/3]

template<typename ESProduct, typename ESRecord>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< ESProduct, ESRecord >::operator= ( ESGetToken< ESProduct, ESRecord > &&  )
defaultnoexcept

◆ operator=() [2/3]

template<typename ESProduct, typename ESRecord>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< ESProduct, ESRecord >::operator= ( ESGetToken< ESProduct, ESRecord > const &  )
defaultnoexcept

◆ operator=() [3/3]

template<typename ESProduct, typename ESRecord>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< ESProduct, ESRecord >::operator= ( ADAPTER &&  iAdapter)
inline

Definition at line 57 of file ESGetToken.h.

57  {
58  ESGetToken<ESProduct, ESRecord> temp(std::forward<ADAPTER>(iAdapter));
59  return (*this = std::move(temp));
60  }
def move(src, dest)
Definition: eostools.py:511

◆ productLabel()

template<typename ESProduct, typename ESRecord>
constexpr char const* edm::ESGetToken< ESProduct, ESRecord >::productLabel ( ) const
inlineprivatenoexcept

◆ requires() [1/2]

template<typename ESProduct, typename ESRecord>
template<typename ADAPTER >
requires edm::ESGetToken< ESProduct, ESRecord >::requires ( ADAPTER &&  a)
inline

Definition at line 52 of file ESGetToken.h.

52 { a.template consumes<ESProduct, ESRecord>(); }
double a
Definition: hdecay.h:121

◆ requires() [2/2]

template<typename ESProduct, typename ESRecord>
template<typename ADAPTER >
requires edm::ESGetToken< ESProduct, ESRecord >::requires ( ADAPTER &&  a)
inline

Definition at line 56 of file ESGetToken.h.

56 { a.template consumes<ESProduct, ESRecord>(); }
double a
Definition: hdecay.h:121

◆ transitionID()

template<typename ESProduct, typename ESRecord>
constexpr unsigned int edm::ESGetToken< ESProduct, ESRecord >::transitionID ( ) const
inlinenoexcept

Friends And Related Function Documentation

◆ EDConsumerBase

template<typename ESProduct, typename ESRecord>
friend class EDConsumerBase
friend

Definition at line 35 of file ESGetToken.h.

◆ ESConsumesCollector

template<typename ESProduct, typename ESRecord>
friend class ESConsumesCollector
friend

Definition at line 37 of file ESGetToken.h.

◆ ESProducer

template<typename ESProduct, typename ESRecord>
friend class ESProducer
friend

Definition at line 36 of file ESGetToken.h.

◆ EventSetup

template<typename ESProduct, typename ESRecord>
friend class EventSetup
friend

Definition at line 38 of file ESGetToken.h.

◆ eventsetup::EventSetupRecord

template<typename ESProduct, typename ESRecord>
friend class eventsetup::EventSetupRecord
friend

Definition at line 40 of file ESGetToken.h.

◆ EventSetupImpl

template<typename ESProduct, typename ESRecord>
friend class EventSetupImpl
friend

Definition at line 39 of file ESGetToken.h.

Member Data Documentation

◆ m_index

template<typename ESProduct, typename ESRecord>
ESTokenIndex edm::ESGetToken< ESProduct, ESRecord >::m_index {std::numeric_limits<int>::max()}
private

◆ m_productLabel

template<typename ESProduct, typename ESRecord>
char const* edm::ESGetToken< ESProduct, ESRecord >::m_productLabel {nullptr}
private

◆ m_transitionID

template<typename ESProduct, typename ESRecord>
unsigned int edm::ESGetToken< ESProduct, ESRecord >::m_transitionID {std::numeric_limits<unsigned int>::max()}
private