CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
edm::EDGetToken Class Reference

#include <EDGetToken.h>

Public Member Functions

constexpr EDGetToken () noexcept
 
template<typename T >
constexpr EDGetToken (EDGetTokenT< T > iOther) noexcept
 
constexpr EDGetToken (const EDGetToken &) noexcept=default
 
constexpr EDGetToken (EDGetToken &&) noexcept=default
 
constexpr unsigned int index () const noexcept
 
constexpr bool isUninitialized () const noexcept
 
constexpr EDGetTokenoperator= (const EDGetToken &) noexcept=default
 
constexpr EDGetTokenoperator= (EDGetToken &&) noexcept=default
 

Private Member Functions

constexpr EDGetToken (unsigned int iValue) noexcept
 

Private Attributes

unsigned int m_value
 

Static Private Attributes

static const unsigned int s_uninitializedValue = 0xFFFFFFFF
 

Friends

class EDConsumerBase
 
class TestEDGetToken
 

Detailed Description

Definition at line 35 of file EDGetToken.h.

Constructor & Destructor Documentation

◆ EDGetToken() [1/5]

constexpr edm::EDGetToken::EDGetToken ( )
inlinenoexcept

Definition at line 39 of file EDGetToken.h.

References s_uninitializedValue.

static const unsigned int s_uninitializedValue
Definition: EDGetToken.h:57
unsigned int m_value
Definition: EDGetToken.h:62

◆ EDGetToken() [2/5]

template<typename T >
constexpr edm::EDGetToken::EDGetToken ( EDGetTokenT< T iOther)
inlinenoexcept

Definition at line 42 of file EDGetToken.h.

42 : m_value{iOther.m_value} {}
unsigned int m_value
Definition: EDGetToken.h:62

◆ EDGetToken() [3/5]

constexpr edm::EDGetToken::EDGetToken ( const EDGetToken )
defaultnoexcept

◆ EDGetToken() [4/5]

constexpr edm::EDGetToken::EDGetToken ( EDGetToken &&  )
defaultnoexcept

◆ EDGetToken() [5/5]

constexpr edm::EDGetToken::EDGetToken ( unsigned int  iValue)
inlineexplicitprivatenoexcept

Definition at line 59 of file EDGetToken.h.

59 : m_value(iValue) {}
unsigned int m_value
Definition: EDGetToken.h:62

Member Function Documentation

◆ index()

constexpr unsigned int edm::EDGetToken::index ( ) const
inlinenoexcept

◆ isUninitialized()

constexpr bool edm::EDGetToken::isUninitialized ( ) const
inlinenoexcept

Definition at line 51 of file EDGetToken.h.

References m_value, and s_uninitializedValue.

Referenced by edm::EDConsumerBase::throwBadToken().

51 { return m_value == s_uninitializedValue; }
static const unsigned int s_uninitializedValue
Definition: EDGetToken.h:57
unsigned int m_value
Definition: EDGetToken.h:62

◆ operator=() [1/2]

constexpr EDGetToken& edm::EDGetToken::operator= ( const EDGetToken )
defaultnoexcept

◆ operator=() [2/2]

constexpr EDGetToken& edm::EDGetToken::operator= ( EDGetToken &&  )
defaultnoexcept

Friends And Related Function Documentation

◆ EDConsumerBase

friend class EDConsumerBase
friend

Definition at line 36 of file EDGetToken.h.

◆ TestEDGetToken

friend class TestEDGetToken
friend

Definition at line 55 of file EDGetToken.h.

Member Data Documentation

◆ m_value

unsigned int edm::EDGetToken::m_value
private

Definition at line 62 of file EDGetToken.h.

Referenced by index(), and isUninitialized().

◆ s_uninitializedValue

const unsigned int edm::EDGetToken::s_uninitializedValue = 0xFFFFFFFF
staticprivate

Definition at line 57 of file EDGetToken.h.

Referenced by EDGetToken(), and isUninitialized().