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 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 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

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

Definition at line 58 of file ESGetToken.h.

ESTokenIndex m_index
Definition: ESGetToken.h:64
constexpr unsigned int transitionID() const noexcept
Definition: ESGetToken.h:51
char const * label
unsigned int m_transitionID
Definition: ESGetToken.h:63
char const * m_label
Definition: ESGetToken.h:62

Member Function Documentation

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

Definition at line 54 of file ESGetToken.h.

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

54 { return index() != invalidIndex(); }
static constexpr ESTokenIndex invalidIndex() noexcept
Definition: ESGetToken.h:55
constexpr ESTokenIndex index() const noexcept
Definition: ESGetToken.h:53
template<typename ESProduct, typename ESRecord>
constexpr ESTokenIndex edm::ESGetToken< ESProduct, ESRecord >::index ( ) const
inlinenoexcept

Definition at line 53 of file ESGetToken.h.

Referenced by edm::eventsetup::EventSetupRecord::getHandleImpl(), and BeautifulSoup.PageElement::insert().

53 { return m_index; }
ESTokenIndex m_index
Definition: ESGetToken.h:64
template<typename ESProduct, typename ESRecord>
static constexpr ESTokenIndex edm::ESGetToken< ESProduct, ESRecord >::invalidIndex ( )
inlinestaticnoexcept
template<typename ESProduct, typename ESRecord>
constexpr bool edm::ESGetToken< ESProduct, ESRecord >::isInitialized ( ) const
inlinenoexcept

Definition at line 52 of file ESGetToken.h.

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

constexpr unsigned int transitionID() const noexcept
Definition: ESGetToken.h:51
template<typename ESProduct, typename ESRecord>
constexpr char const* edm::ESGetToken< ESProduct, ESRecord >::name ( void  ) const
inlineprivatenoexcept
template<typename ESProduct, typename ESRecord>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< ESProduct, ESRecord >::operator= ( ESGetToken< ESProduct, ESRecord > &&  )
defaultnoexcept
template<typename ESProduct, typename ESRecord>
constexpr ESGetToken<ESProduct, ESRecord>& edm::ESGetToken< ESProduct, ESRecord >::operator= ( ESGetToken< ESProduct, ESRecord > const &  )
defaultnoexcept
template<typename ESProduct, typename ESRecord>
constexpr unsigned int edm::ESGetToken< ESProduct, ESRecord >::transitionID ( ) const
inlinenoexcept

Definition at line 51 of file ESGetToken.h.

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

51 { return m_transitionID; }
unsigned int m_transitionID
Definition: ESGetToken.h:63

Friends And Related Function Documentation

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

Definition at line 35 of file ESGetToken.h.

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

Definition at line 37 of file ESGetToken.h.

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

Definition at line 36 of file ESGetToken.h.

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

Definition at line 38 of file ESGetToken.h.

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

Definition at line 40 of file ESGetToken.h.

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

Definition at line 39 of file ESGetToken.h.

Member Data Documentation

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

Definition at line 64 of file ESGetToken.h.

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

Definition at line 62 of file ESGetToken.h.

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

Definition at line 63 of file ESGetToken.h.