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
 
template<typename ADAPTER >
constexpr ESGetToken (ADAPTER &&iAdapter)
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > &&) noexcept=default
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > &iOther)
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > const &&iOther)
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > const &) noexcept=default
 
constexpr bool hasValidIndex () const noexcept
 
constexpr ESTokenIndex index () const noexcept
 
constexpr bool isInitialized () const noexcept
 
template<typename ADAPTER >
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ADAPTER &&iAdapter) noexcept
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > &&) noexcept=default
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > &iOther) noexcept
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > const &&iOther) noexcept
 
constexpr ESGetToken< ESProduct, ESRecord > & operator= (ESGetToken< ESProduct, ESRecord > const &) noexcept=default
 
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 *label) noexcept
 
constexpr char const * name () const noexcept
 

Private Attributes

ESTokenIndex m_index {std::numeric_limits<int>::max()}
 
char const * m_label {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 48 of file EventSetup.h.

Constructor & Destructor Documentation

◆ ESGetToken() [1/7]

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

◆ ESGetToken() [2/7]

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

◆ ESGetToken() [3/7]

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

◆ ESGetToken() [4/7]

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

Definition at line 52 of file ESGetToken.h.

52 : ESGetToken(iAdapter.template consumes<ESProduct, ESRecord>()) {}

◆ ESGetToken() [5/7]

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

Definition at line 61 of file ESGetToken.h.

62  : ESGetToken(const_cast<const ESGetToken<ESProduct, ESRecord>&>(iOther)) {}

◆ ESGetToken() [6/7]

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

Definition at line 66 of file ESGetToken.h.

66 : ESGetToken(iOther) {}

◆ ESGetToken() [7/7]

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

Definition at line 78 of file ESGetToken.h.

Member Function Documentation

◆ hasValidIndex()

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

Definition at line 74 of file ESGetToken.h.

74 { return index() != invalidIndex(); }

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

◆ index()

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

◆ invalidIndex()

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

◆ isInitialized()

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

◆ name()

template<typename ESProduct, typename ESRecord>
constexpr char const* edm::ESGetToken< ESProduct, ESRecord >::name ( void  ) const
inlineconstexprprivatenoexcept

◆ operator=() [1/5]

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

Definition at line 55 of file ESGetToken.h.

55  {
56  ESGetToken<ESProduct, ESRecord> temp(std::forward<ADAPTER>(iAdapter));
57  return (*this = std::move(temp));
58  }

◆ operator=() [2/5]

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

◆ operator=() [3/5]

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

Definition at line 63 of file ESGetToken.h.

63  {
64  return (*this = const_cast<ESGetToken<ESProduct, ESRecord> const&>(iOther));
65  }

◆ operator=() [4/5]

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

Definition at line 67 of file ESGetToken.h.

67  {
68  return (*this = iOther);
69  }

◆ operator=() [5/5]

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

◆ transitionID()

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

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_label

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

◆ m_transitionID

template<typename ESProduct, typename ESRecord>
unsigned int edm::ESGetToken< ESProduct, ESRecord >::m_transitionID {std::numeric_limits<unsigned int>::max()}
private
edm::ESGetToken::index
constexpr ESTokenIndex index() const noexcept
Definition: ESGetToken.h:73
edm::ESGetToken::m_index
ESTokenIndex m_index
Definition: ESGetToken.h:84
edm::ESGetToken::ESGetToken
constexpr ESGetToken() noexcept=default
watchdog.const
const
Definition: watchdog.py:83
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
edm::ESGetToken::invalidIndex
static constexpr ESTokenIndex invalidIndex() noexcept
Definition: ESGetToken.h:75
edm::ESGetToken::m_transitionID
unsigned int m_transitionID
Definition: ESGetToken.h:83
ESTokenIndex
edm::ESGetToken::transitionID
constexpr unsigned int transitionID() const noexcept
Definition: ESGetToken.h:71
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
ESGetToken
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ESGetToken::m_label
char const * m_label
Definition: ESGetToken.h:82
label
const char * label
Definition: PFTauDecayModeTools.cc:11