CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 (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)
 
 LuminosityBlockIndex ()=delete
 

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

edm::LuminosityBlockIndex::LuminosityBlockIndex ( const LuminosityBlockIndex )
default
edm::LuminosityBlockIndex::~LuminosityBlockIndex ( )
default
edm::LuminosityBlockIndex::LuminosityBlockIndex ( unsigned int  iValue)
inlineexplicitprivate

Definition at line 60 of file LuminosityBlockIndex.h.

60 : value_{iValue} {}
edm::LuminosityBlockIndex::LuminosityBlockIndex ( )
privatedelete

Member Function Documentation

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

Definition at line 42 of file LuminosityBlockIndex.h.

References value_.

42  {
43  return value_;
44  }
LuminosityBlockIndex& edm::LuminosityBlockIndex::operator= ( const LuminosityBlockIndex )
default
bool edm::LuminosityBlockIndex::operator== ( LuminosityBlockIndex const &  iRHS) const
inline

Definition at line 46 of file LuminosityBlockIndex.h.

References value().

46  {
47  return value() == iRHS.value();
48  }
unsigned int value() const
unsigned int edm::LuminosityBlockIndex::value ( ) const
inline
Returns
value ranging from 0 to one less than max number of simultaneous luminosityblocks.

Definition at line 52 of file LuminosityBlockIndex.h.

References value_.

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

52 { return value_;}

Friends And Related Function Documentation

friend class LuminosityBlockPrincipal
friend

Only the LuminosityBlockPrincipal is allowed to make one of these.

Definition at line 58 of file LuminosityBlockIndex.h.

Member Data Documentation

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

Definition at line 67 of file LuminosityBlockIndex.h.

Referenced by invalidLuminosityBlockIndex().

unsigned int edm::LuminosityBlockIndex::value_
private

Definition at line 65 of file LuminosityBlockIndex.h.

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