CMS 3D CMS Logo

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

#include "FWCore/Utilities/interface/LuminosityBlockIndex.h"

Public Member Functions

 LuminosityBlockIndex ()=delete
 
 LuminosityBlockIndex (const LuminosityBlockIndex &)=default
 
 operator unsigned int () const
 
LuminosityBlockIndexoperator= (const LuminosityBlockIndex &)=default
 
bool operator== (LuminosityBlockIndex const &iRHS) const
 
unsigned int value () const
 
 ~LuminosityBlockIndex ()=default
 

Static Public Member Functions

static LuminosityBlockIndex invalidLuminosityBlockIndex ()
 

Private Member Functions

 LuminosityBlockIndex (unsigned int iValue)
 

Private Attributes

unsigned int value_
 

Static Private Attributes

static const unsigned int invalidValue_ = std::numeric_limits<unsigned int>::max()
 

Friends

class LuminosityBlockPrincipal
 Only the LuminosityBlockPrincipal is allowed to make one of these. More...
 

Detailed Description

Description: Identifies a 'slot' being used to hold an active LuminosityBlock

Usage: Various APIs used this to access per LuminosityBlock information. It is important to realize that the same LuminosityBockIndex may be used to refer to different LuminosityBlocks over the lifetime of a job. A LuminosityBlockIndex will only get a new LuminosityBlock after the previous LuminosityBlock using that index has finished being used.

Definition at line 33 of file LuminosityBlockIndex.h.

Constructor & Destructor Documentation

◆ LuminosityBlockIndex() [1/3]

edm::LuminosityBlockIndex::LuminosityBlockIndex ( const LuminosityBlockIndex )
default

◆ LuminosityBlockIndex() [2/3]

edm::LuminosityBlockIndex::LuminosityBlockIndex ( )
delete

◆ ~LuminosityBlockIndex()

edm::LuminosityBlockIndex::~LuminosityBlockIndex ( )
default

◆ LuminosityBlockIndex() [3/3]

edm::LuminosityBlockIndex::LuminosityBlockIndex ( unsigned int  iValue)
inlineexplicitprivate

Definition at line 55 of file LuminosityBlockIndex.h.

55 : value_{iValue} {}

Member Function Documentation

◆ invalidLuminosityBlockIndex()

LuminosityBlockIndex edm::LuminosityBlockIndex::invalidLuminosityBlockIndex ( )
static

◆ operator unsigned int()

edm::LuminosityBlockIndex::operator unsigned int ( ) const
inline

Definition at line 41 of file LuminosityBlockIndex.h.

41 { return value_; }

References value_.

◆ operator=()

LuminosityBlockIndex& edm::LuminosityBlockIndex::operator= ( const LuminosityBlockIndex )
default

◆ operator==()

bool edm::LuminosityBlockIndex::operator== ( LuminosityBlockIndex const &  iRHS) const
inline

Definition at line 43 of file LuminosityBlockIndex.h.

43 { return value() == iRHS.value(); }

References value().

◆ value()

unsigned int edm::LuminosityBlockIndex::value ( ) const
inline
Returns
value ranging from 0 to one less than max number of simultaneous luminosityblocks.

Definition at line 47 of file LuminosityBlockIndex.h.

47 { return value_; }

References value_.

Referenced by average.Average::average(), edm::operator<<(), operator==(), edm::service::MessageLogger::preModuleGlobalBeginLumi(), edm::service::MessageLogger::preModuleGlobalEndLumi(), and edm::LuminosityBlockPrincipal::transitionIndex_().

Friends And Related Function Documentation

◆ LuminosityBlockPrincipal

friend class LuminosityBlockPrincipal
friend

Only the LuminosityBlockPrincipal is allowed to make one of these.

Definition at line 53 of file LuminosityBlockIndex.h.

Member Data Documentation

◆ invalidValue_

const unsigned int edm::LuminosityBlockIndex::invalidValue_ = std::numeric_limits<unsigned int>::max()
staticprivate

Definition at line 60 of file LuminosityBlockIndex.h.

Referenced by invalidLuminosityBlockIndex().

◆ value_

unsigned int edm::LuminosityBlockIndex::value_
private

Definition at line 58 of file LuminosityBlockIndex.h.

Referenced by operator unsigned int(), and value().

edm::LuminosityBlockIndex::value
unsigned int value() const
Definition: LuminosityBlockIndex.h:47
edm::LuminosityBlockIndex::LuminosityBlockIndex
LuminosityBlockIndex()=delete
edm::LuminosityBlockIndex::invalidValue_
static const unsigned int invalidValue_
Definition: LuminosityBlockIndex.h:60
edm::LuminosityBlockIndex::value_
unsigned int value_
Definition: LuminosityBlockIndex.h:58