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::RunIndex Class Reference

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

Public Member Functions

 operator unsigned int () const
 
RunIndexoperator= (const RunIndex &)=default
 
bool operator== (const RunIndex &iIndex) const
 
 RunIndex ()=delete
 
 RunIndex (const RunIndex &)=default
 
unsigned int value () const
 
 ~RunIndex ()=default
 

Static Public Member Functions

static RunIndex invalidRunIndex ()
 

Private Member Functions

 RunIndex (unsigned int iIndex)
 

Private Attributes

unsigned int value_
 

Static Private Attributes

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

Friends

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

Detailed Description

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

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

Definition at line 32 of file RunIndex.h.

Constructor & Destructor Documentation

◆ ~RunIndex()

edm::RunIndex::~RunIndex ( )
default

◆ RunIndex() [1/3]

edm::RunIndex::RunIndex ( )
delete

Referenced by invalidRunIndex().

◆ RunIndex() [2/3]

edm::RunIndex::RunIndex ( const RunIndex )
default

◆ RunIndex() [3/3]

edm::RunIndex::RunIndex ( unsigned int  iIndex)
inlineexplicitprivate

Definition at line 52 of file RunIndex.h.

52 : value_(iIndex) {}
unsigned int value_
Definition: RunIndex.h:55

Member Function Documentation

◆ invalidRunIndex()

RunIndex edm::RunIndex::invalidRunIndex ( )
static

◆ operator unsigned int()

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

Definition at line 41 of file RunIndex.h.

References value_.

41 { return value_; }
unsigned int value_
Definition: RunIndex.h:55

◆ operator=()

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

◆ operator==()

bool edm::RunIndex::operator== ( const RunIndex iIndex) const
inline

Definition at line 40 of file RunIndex.h.

References value().

40 { return value() == iIndex.value(); }
unsigned int value() const
Definition: RunIndex.h:45

◆ value()

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

Definition at line 45 of file RunIndex.h.

References value_.

Referenced by average.Average::average(), edm::operator<<(), operator==(), and edm::RunPrincipal::transitionIndex_().

45 { return value_; }
unsigned int value_
Definition: RunIndex.h:55

Friends And Related Function Documentation

◆ RunPrincipal

friend class RunPrincipal
friend

Only the RunPrincipal is allowed to make one of these.

Definition at line 51 of file RunIndex.h.

Member Data Documentation

◆ invalidValue_

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

Definition at line 57 of file RunIndex.h.

Referenced by invalidRunIndex().

◆ value_

unsigned int edm::RunIndex::value_
private

Definition at line 55 of file RunIndex.h.

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