Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::MasterProductRegistry Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Persistency/Provenance/MasterProductRegistry.h"

Public Member Functions

 MasterProductRegistry ()=default
 
 MasterProductRegistry (MasterProductRegistry const &)=delete
 
MasterProductRegistryoperator= (MasterProductRegistry const &)=delete
 
void registerProductListUpdatedCallback (ProductListUpdatedCallback cb)
 
void finalizeForProcessing ()
 
void addProductsFromModule (ProductDescriptions &&)
 
void updateFromModule (std::unique_ptr< ProductList > &&)
 
void updateFromInputFile (ProductList const &)
 
auto const & productList () const
 
auto size () const
 
void print (std::ostream &) const
 
bool productProduced (BranchType branchType) const
 

Private Member Functions

void addProduct_ (BranchDescription &&)
 
void updateProductLists_ (ProductList const &pl)
 

Private Attributes

bool allowExplicitRegistration_ {true}
 
ProductList productList_ {}
 
std::array< bool, NumBranchTypesproductProduced_
 
std::vector< ProductListUpdatedCallbackproductListUpdatedCallbacks_ {}
 

Detailed Description

Definition at line 47 of file MasterProductRegistry.h.

Constructor & Destructor Documentation

art::MasterProductRegistry::MasterProductRegistry ( )
explicitdefault
art::MasterProductRegistry::MasterProductRegistry ( MasterProductRegistry const &  )
delete

Member Function Documentation

void art::MasterProductRegistry::addProduct_ ( BranchDescription &&  )
private

Referenced by productProduced().

void art::MasterProductRegistry::addProductsFromModule ( ProductDescriptions &&  )
void art::MasterProductRegistry::finalizeForProcessing ( )
MasterProductRegistry& art::MasterProductRegistry::operator= ( MasterProductRegistry const &  )
delete
void art::MasterProductRegistry::print ( std::ostream &  ) const

Referenced by size().

auto const& art::MasterProductRegistry::productList ( ) const
inline

Definition at line 62 of file MasterProductRegistry.h.

References productList_.

63  {
64  return productList_;
65  }
bool art::MasterProductRegistry::productProduced ( BranchType  branchType) const
inline

Definition at line 75 of file MasterProductRegistry.h.

References addProduct_(), std_candles::pl, productProduced_, and updateProductLists_().

76  {
77  return productProduced_[branchType];
78  }
std::array< bool, NumBranchTypes > productProduced_
void art::MasterProductRegistry::registerProductListUpdatedCallback ( ProductListUpdatedCallback  cb)
auto art::MasterProductRegistry::size ( void  ) const
inline

Definition at line 67 of file MasterProductRegistry.h.

References print(), and productList_.

68  {
69  return productList_.size();
70  }
void art::MasterProductRegistry::updateFromInputFile ( ProductList const &  )
void art::MasterProductRegistry::updateFromModule ( std::unique_ptr< ProductList > &&  )
void art::MasterProductRegistry::updateProductLists_ ( ProductList const &  pl)
private

Referenced by productProduced().

Member Data Documentation

bool art::MasterProductRegistry::allowExplicitRegistration_ {true}
private

Definition at line 84 of file MasterProductRegistry.h.

ProductList art::MasterProductRegistry::productList_ {}
private

Definition at line 87 of file MasterProductRegistry.h.

Referenced by productList(), and size().

std::vector<ProductListUpdatedCallback> art::MasterProductRegistry::productListUpdatedCallbacks_ {}
private

Definition at line 90 of file MasterProductRegistry.h.

std::array<bool, NumBranchTypes> art::MasterProductRegistry::productProduced_
private
Initial value:
{
{false}}

Definition at line 88 of file MasterProductRegistry.h.

Referenced by productProduced().


The documentation for this class was generated from the following file: