CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ProductID Class Reference

#include <ProductID.h>

Public Member Functions

ProductIndex id () const
 
bool isValid () const
 
ProcessIndex processIndex () const
 
 ProductID ()
 
 ProductID (ProcessIndex procIndex, ProductIndex prodIndex)
 
 ProductID (ProductIndex prodIndex)
 
ProcessIndex productIndex () const
 
void reset ()
 
void swap (ProductID &other)
 

Private Attributes

ProcessIndex processIndex_
 
ProductIndex productIndex_
 

Detailed Description

Definition at line 27 of file ProductID.h.

Constructor & Destructor Documentation

◆ ProductID() [1/3]

edm::ProductID::ProductID ( )
inline

Definition at line 29 of file ProductID.h.

29 : processIndex_(0), productIndex_(0) {}

◆ ProductID() [2/3]

edm::ProductID::ProductID ( ProductIndex  prodIndex)
inlineexplicit

Definition at line 30 of file ProductID.h.

30 : processIndex_(0), productIndex_(prodIndex) {}

◆ ProductID() [3/3]

edm::ProductID::ProductID ( ProcessIndex  procIndex,
ProductIndex  prodIndex 
)
inline

Definition at line 31 of file ProductID.h.

31 : processIndex_(procIndex), productIndex_(prodIndex) {}

Member Function Documentation

◆ id()

ProductIndex edm::ProductID::id ( ) const
inline

◆ isValid()

bool edm::ProductID::isValid ( void  ) const
inline

◆ processIndex()

ProcessIndex edm::ProductID::processIndex ( ) const
inline

◆ productIndex()

ProcessIndex edm::ProductID::productIndex ( ) const
inline

◆ reset()

void edm::ProductID::reset ( void  )
inline

Definition at line 36 of file ProductID.h.

References processIndex_, and productIndex_.

Referenced by edm::ElementID::reset().

◆ swap()

void edm::ProductID::swap ( ProductID other)

Definition at line 16 of file ProductID.cc.

16  {
17  std::swap(processIndex_, other.processIndex_);
18  std::swap(productIndex_, other.productIndex_);
19  }

References trackingPlots::other, processIndex_, productIndex_, and std::swap().

Referenced by ClusterTPAssociation::swap(), and edm::StableProvenance::swap().

Member Data Documentation

◆ processIndex_

ProcessIndex edm::ProductID::processIndex_
private

Definition at line 41 of file ProductID.h.

Referenced by processIndex(), reset(), and swap().

◆ productIndex_

ProductIndex edm::ProductID::productIndex_
private

Definition at line 42 of file ProductID.h.

Referenced by id(), isValid(), productIndex(), reset(), and swap().

edm::ProductID::processIndex_
ProcessIndex processIndex_
Definition: ProductID.h:41
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
edm::ProductID::productIndex_
ProductIndex productIndex_
Definition: ProductID.h:42
trackingPlots.other
other
Definition: trackingPlots.py:1460