CMS 3D CMS Logo

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

#include <ProductResolverIndexAndSkipBit.h>

Public Member Functions

bool operator== (ProductResolverIndexAndSkipBit const &r)
 
ProductResolverIndex productResolverIndex () const
 
 ProductResolverIndexAndSkipBit (ProductResolverIndex productResolverIndex, bool skipCurrentProcess)
 
bool skipCurrentProcess () const
 

Private Attributes

unsigned int value_
 

Static Private Attributes

static const unsigned int s_skipMask = 1U << 31
 

Detailed Description

Description: This class holds a ProductIndexHolder and a boolean value to indicate whether the skipCurrentProcess option was set. Internally it bit packs them in an unsigned int. There is a little extra complexity in the implementation to hide the fact that some special values of ProductResolverIndex use the same bit we use for skipCurrentProcess.

Usage: EDConsumerBase use this and pass a container of them to the Workers to let them know what data will be consumed.

Definition at line 28 of file ProductResolverIndexAndSkipBit.h.

Constructor & Destructor Documentation

◆ ProductResolverIndexAndSkipBit()

edm::ProductResolverIndexAndSkipBit::ProductResolverIndexAndSkipBit ( ProductResolverIndex  productResolverIndex,
bool  skipCurrentProcess 
)
inline

Member Function Documentation

◆ operator==()

bool edm::ProductResolverIndexAndSkipBit::operator== ( ProductResolverIndexAndSkipBit const &  r)
inline

Definition at line 38 of file ProductResolverIndexAndSkipBit.h.

References value_.

◆ productResolverIndex()

ProductResolverIndex edm::ProductResolverIndexAndSkipBit::productResolverIndex ( ) const
inline

◆ skipCurrentProcess()

bool edm::ProductResolverIndexAndSkipBit::skipCurrentProcess ( ) const
inline

Member Data Documentation

◆ s_skipMask

const unsigned int edm::ProductResolverIndexAndSkipBit::s_skipMask = 1U << 31
staticprivate

Definition at line 41 of file ProductResolverIndexAndSkipBit.h.

Referenced by productResolverIndex(), and skipCurrentProcess().

◆ value_

unsigned int edm::ProductResolverIndexAndSkipBit::value_
private