CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ESGetToken< T, R > 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
 
template<typename ADAPTER >
constexpr ESGetToken (ADAPTER &&iAdapter)
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > &iOther)
 
constexpr ESGetToken (ESGetToken< ESProduct, ESRecord > const &&iOther)
 
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
 
template<typename ADAPTER >
constexpr ESGetToken
< ESProduct, ESRecord > & 
operator= (ADAPTER &&iAdapter) noexcept
 
constexpr ESGetToken
< ESProduct, ESRecord > & 
operator= (ESGetToken< ESProduct, ESRecord > &iOther) noexcept
 
constexpr ESGetToken
< ESProduct, ESRecord > & 
operator= (ESGetToken< ESProduct, ESRecord > const &&iOther) noexcept
 
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<class T, class R>
class edm::ESGetToken< T, R >

Definition at line 49 of file EventSetup.h.

Constructor & Destructor Documentation

template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( )
defaultnoexcept
template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( ESGetToken< ESProduct, ESRecord > const &  )
defaultnoexcept
template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( ESGetToken< ESProduct, ESRecord > &&  )
defaultnoexcept
template<class T, class R>
template<typename ADAPTER >
constexpr edm::ESGetToken< T, R >::ESGetToken ( ADAPTER &&  iAdapter)
inlineexplicit

Definition at line 52 of file ESGetToken.h.

52 : ESGetToken(iAdapter.template consumes<ESProduct, ESRecord>()) {}
constexpr ESGetToken() noexcept=default
template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( ESGetToken< ESProduct, ESRecord > &  iOther)
inline

Definition at line 61 of file ESGetToken.h.

62  : ESGetToken(const_cast<const ESGetToken<ESProduct, ESRecord>&>(iOther)) {}
constexpr ESGetToken() noexcept=default
template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( ESGetToken< ESProduct, ESRecord > const &&  iOther)
inline

Definition at line 66 of file ESGetToken.h.

66 : ESGetToken(iOther) {}
constexpr ESGetToken() noexcept=default
template<class T, class R>
constexpr edm::ESGetToken< T, R >::ESGetToken ( unsigned int  transitionID,
ESTokenIndex  index,
char const *  label 
)
inlineexplicitprivatenoexcept

Definition at line 78 of file ESGetToken.h.

constexpr unsigned int transitionID() const noexcept
Definition: ESGetToken.h:71
ESTokenIndex m_index
Definition: ESGetToken.h:84
char const * label
unsigned int m_transitionID
Definition: ESGetToken.h:83
char const * m_label
Definition: ESGetToken.h:82

Member Function Documentation

template<class T, class R>
constexpr bool edm::ESGetToken< T, R >::hasValidIndex ( ) const
inlinenoexcept

Definition at line 74 of file ESGetToken.h.

Referenced by TopSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), and edm::eventsetup::EventSetupRecord::getHandleImpl().

74 { return index() != invalidIndex(); }
constexpr ESTokenIndex index() const noexcept
Definition: ESGetToken.h:73
static constexpr ESTokenIndex invalidIndex() noexcept
Definition: ESGetToken.h:75
template<class T, class R>
constexpr ESTokenIndex edm::ESGetToken< T, R >::index ( ) const
inlinenoexcept
template<class T, class R>
static constexpr ESTokenIndex edm::ESGetToken< T, R >::invalidIndex ( )
inlinestaticnoexcept
template<class T, class R>
constexpr bool edm::ESGetToken< T, R >::isInitialized ( ) const
inlinenoexcept
template<class T, class R>
constexpr char const* edm::ESGetToken< T, R >::name ( void  ) const
inlineprivatenoexcept
template<class T, class R>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< T, R >::operator= ( ESGetToken< ESProduct, ESRecord > &&  )
defaultnoexcept
template<class T, class R>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< T, R >::operator= ( ESGetToken< ESProduct, ESRecord > const &  )
defaultnoexcept
template<class T, class R>
template<typename ADAPTER >
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< T, R >::operator= ( ADAPTER &&  iAdapter)
inlinenoexcept

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  }
def move
Definition: eostools.py:511
template<class T, class R>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< T, R >::operator= ( ESGetToken< ESProduct, ESRecord > &  iOther)
inlinenoexcept

Definition at line 63 of file ESGetToken.h.

63  {
64  return (*this = const_cast<ESGetToken<ESProduct, ESRecord> const&>(iOther));
65  }
template<class T, class R>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< T, R >::operator= ( ESGetToken< ESProduct, ESRecord > const &&  iOther)
inlinenoexcept

Definition at line 67 of file ESGetToken.h.

67  {
68  return (*this = iOther);
69  }
template<class T, class R>
constexpr unsigned int edm::ESGetToken< T, R >::transitionID ( ) const
inlinenoexcept

Friends And Related Function Documentation

template<class T, class R>
friend class EDConsumerBase
friend

Definition at line 35 of file ESGetToken.h.

template<class T, class R>
friend class ESConsumesCollector
friend

Definition at line 37 of file ESGetToken.h.

template<class T, class R>
friend class ESProducer
friend

Definition at line 36 of file ESGetToken.h.

template<class T, class R>
friend class EventSetup
friend

Definition at line 38 of file ESGetToken.h.

template<class T, class R>
friend class eventsetup::EventSetupRecord
friend

Definition at line 40 of file ESGetToken.h.

template<class T, class R>
friend class EventSetupImpl
friend

Definition at line 39 of file ESGetToken.h.

Member Data Documentation

template<class T, class R>
ESTokenIndex edm::ESGetToken< T, R >::m_index {std::numeric_limits<int>::max()}
private
template<class T, class R>
char const* edm::ESGetToken< T, R >::m_label {nullptr}
private
template<class T, class R>
unsigned int edm::ESGetToken< T, R >::m_transitionID {std::numeric_limits<unsigned int>::max()}
private