CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::ProductRegistry::Transients Struct Reference

#include <ProductRegistry.h>

Public Member Functions

std::shared_ptr< ProductResolverIndexHelper const > eventProductLookup () const
 
std::shared_ptr< ProductResolverIndexHelper > & eventProductLookup ()
 
std::shared_ptr< ProductResolverIndexHelper const > lumiProductLookup () const
 
std::shared_ptr< ProductResolverIndexHelper > & lumiProductLookup ()
 
void reset ()
 
std::shared_ptr< ProductResolverIndexHelper const > runProductLookup () const
 
std::shared_ptr< ProductResolverIndexHelper > & runProductLookup ()
 
 Transients ()
 

Public Attributes

std::vector< std::pair< std::string, std::string > > aliasToOriginal_
 
bool anyProductProduced_
 
std::map< BranchID, ProductResolverIndexbranchIDToIndex_
 
ProductResolverIndex eventNextIndexValue_
 
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > eventProductLookup_
 
bool frozen_
 
ProductResolverIndex lumiNextIndexValue_
 
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > lumiProductLookup_
 
std::array< bool, NumBranchTypesproductProduced_
 
ProductResolverIndex runNextIndexValue_
 
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > runProductLookup_
 

Detailed Description

Definition at line 130 of file ProductRegistry.h.

Constructor & Destructor Documentation

edm::ProductRegistry::Transients::Transients ( )

Definition at line 38 of file ProductRegistry.cc.

References productProduced_.

38  :
39  frozen_(false),
41  anyProductProduced_(false),
42  eventProductLookup_(new ProductResolverIndexHelper),
43  lumiProductLookup_(new ProductResolverIndexHelper),
44  runProductLookup_(new ProductResolverIndexHelper),
48 
50  for(bool& isProduced : productProduced_) isProduced = false;
51  }
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > lumiProductLookup_
ProductResolverIndex eventNextIndexValue_
ProductResolverIndex lumiNextIndexValue_
ProductResolverIndex runNextIndexValue_
std::array< bool, NumBranchTypes > productProduced_
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > eventProductLookup_
std::map< BranchID, ProductResolverIndex > branchIDToIndex_
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > runProductLookup_

Member Function Documentation

std::shared_ptr<ProductResolverIndexHelper const> edm::ProductRegistry::Transients::eventProductLookup ( ) const
inline

Definition at line 134 of file ProductRegistry.h.

References eventProductLookup_, and edm::get_underlying_safe().

Referenced by edm::ProductRegistry::productLookup().

std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > eventProductLookup_
std::shared_ptr<ProductResolverIndexHelper>& edm::ProductRegistry::Transients::eventProductLookup ( )
inline

Definition at line 135 of file ProductRegistry.h.

References eventProductLookup_, and edm::get_underlying_safe().

std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > eventProductLookup_
std::shared_ptr<ProductResolverIndexHelper const> edm::ProductRegistry::Transients::lumiProductLookup ( ) const
inline

Definition at line 136 of file ProductRegistry.h.

References edm::get_underlying_safe(), and lumiProductLookup_.

Referenced by edm::ProductRegistry::productLookup().

edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > lumiProductLookup_
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr<ProductResolverIndexHelper>& edm::ProductRegistry::Transients::lumiProductLookup ( )
inline

Definition at line 137 of file ProductRegistry.h.

References edm::get_underlying_safe(), and lumiProductLookup_.

edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > lumiProductLookup_
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
void edm::ProductRegistry::Transients::reset ( void  )

Definition at line 54 of file ProductRegistry.cc.

References anyProductProduced_, branchIDToIndex_, eventNextIndexValue_, eventProductLookup_, frozen_, lumiNextIndexValue_, lumiProductLookup_, productProduced_, runNextIndexValue_, and runProductLookup_.

Referenced by edm::ProductRegistry::initializeTransients().

54  {
55  frozen_ = false;
56  for(bool& isProduced : productProduced_) isProduced = false;
57  anyProductProduced_ = false;
58 
59  // propagate_const<T> has no reset() function
60  eventProductLookup_ = std::make_unique<ProductResolverIndexHelper>();
61  lumiProductLookup_ = std::make_unique<ProductResolverIndexHelper>();
62  runProductLookup_ = std::make_unique<ProductResolverIndexHelper>();
63 
67 
68  branchIDToIndex_.clear();
69  }
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > lumiProductLookup_
ProductResolverIndex eventNextIndexValue_
ProductResolverIndex lumiNextIndexValue_
ProductResolverIndex runNextIndexValue_
std::array< bool, NumBranchTypes > productProduced_
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > eventProductLookup_
std::map< BranchID, ProductResolverIndex > branchIDToIndex_
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > runProductLookup_
std::shared_ptr<ProductResolverIndexHelper const> edm::ProductRegistry::Transients::runProductLookup ( ) const
inline

Definition at line 138 of file ProductRegistry.h.

References edm::get_underlying_safe(), and runProductLookup_.

Referenced by edm::ProductRegistry::productLookup().

std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > runProductLookup_
std::shared_ptr<ProductResolverIndexHelper>& edm::ProductRegistry::Transients::runProductLookup ( )
inline

Definition at line 139 of file ProductRegistry.h.

References edm::get_underlying_safe(), and runProductLookup_.

std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > > runProductLookup_

Member Data Documentation

std::vector<std::pair<std::string, std::string> > edm::ProductRegistry::Transients::aliasToOriginal_
bool edm::ProductRegistry::Transients::anyProductProduced_
std::map<BranchID, ProductResolverIndex> edm::ProductRegistry::Transients::branchIDToIndex_
ProductResolverIndex edm::ProductRegistry::Transients::eventNextIndexValue_
edm::propagate_const<std::shared_ptr<ProductResolverIndexHelper> > edm::ProductRegistry::Transients::eventProductLookup_

Definition at line 146 of file ProductRegistry.h.

Referenced by eventProductLookup(), and reset().

bool edm::ProductRegistry::Transients::frozen_
ProductResolverIndex edm::ProductRegistry::Transients::lumiNextIndexValue_
edm::propagate_const<std::shared_ptr<ProductResolverIndexHelper> > edm::ProductRegistry::Transients::lumiProductLookup_

Definition at line 147 of file ProductRegistry.h.

Referenced by lumiProductLookup(), and reset().

std::array<bool, NumBranchTypes> edm::ProductRegistry::Transients::productProduced_
ProductResolverIndex edm::ProductRegistry::Transients::runNextIndexValue_
edm::propagate_const<std::shared_ptr<ProductResolverIndexHelper> > edm::ProductRegistry::Transients::runProductLookup_

Definition at line 148 of file ProductRegistry.h.

Referenced by reset(), and runProductLookup().