LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ConsumesInfo.h"
Public Types | |
using | consumables_t = std::map< std::string const, std::array< std::vector< ProductInfo >, NumBranchTypes >> |
Public Member Functions | |
~ConsumesInfo () | |
ConsumesInfo (ConsumesInfo const &)=delete | |
ConsumesInfo (ConsumesInfo &&)=delete | |
ConsumesInfo & | operator= (ConsumesInfo const &)=delete |
ConsumesInfo & | operator= (ConsumesInfo &&)=delete |
void | setRequireConsumes (bool const) |
consumables_t::mapped_type const & | consumables (std::string const &module_label) const |
void | collectConsumes (std::string const &module_label, consumables_t::mapped_type const &consumables) |
void | validateConsumedProduct (BranchType const, ModuleDescription const &, ProductInfo const &productInfo) |
void | showMissingConsumes () const |
Static Public Member Functions | |
static ConsumesInfo * | instance () |
static std::string | assemble_consumes_statement (BranchType const, ProductInfo const &) |
static std::string | module_context (ModuleDescription const &) |
Private Member Functions | |
ConsumesInfo () | |
Private Attributes | |
std::recursive_mutex | mutex_ {} |
std::atomic< bool > | requireConsumes_ |
consumables_t | consumables_ |
std::map< std::string const, std::array< std::set< ProductInfo >, NumBranchTypes > > | missingConsumes_ |
Definition at line 88 of file ConsumesInfo.h.
using art::ConsumesInfo::consumables_t = std::map<std::string const, std::array<std::vector<ProductInfo>, NumBranchTypes>> |
Definition at line 107 of file ConsumesInfo.h.
|
default |
|
delete |
|
delete |
|
private |
Definition at line 21 of file ConsumesInfo.cc.
Referenced by consumables().
|
static |
Definition at line 34 of file ConsumesInfo.cc.
References art::BranchTypeToString(), and art::InEvent.
void art::ConsumesInfo::collectConsumes | ( | std::string const & | module_label, |
consumables_t::mapped_type const & | consumables | ||
) |
Definition at line 102 of file ConsumesInfo.cc.
Referenced by consumables(), and art::PathManager::makeModules_().
|
inline |
Definition at line 110 of file ConsumesInfo.h.
References collectConsumes(), consumables_, ConsumesInfo(), showMissingConsumes(), and validateConsumedProduct().
Referenced by art::PathManager::fillModuleOnlyDeps_().
|
static |
Definition at line 27 of file ConsumesInfo.cc.
Referenced by art::EventProcessor::endJob(), art::EventProcessor::EventProcessor(), art::PathManager::fillModuleOnlyDeps_(), art::ProductRetriever::getByLabel_(), art::ProductRetriever::getContainerForView_(), art::ProductRetriever::getMany_(), and art::PathManager::makeModules_().
|
static |
Definition at line 85 of file ConsumesInfo.cc.
References art::ModuleDescription::moduleLabel(), and art::ModuleDescription::moduleName().
|
delete |
|
delete |
void art::ConsumesInfo::setRequireConsumes | ( | bool const | val | ) |
Definition at line 96 of file ConsumesInfo.cc.
Referenced by art::EventProcessor::EventProcessor().
void art::ConsumesInfo::showMissingConsumes | ( | ) | const |
Definition at line 134 of file ConsumesInfo.cc.
References util::pi().
Referenced by consumables(), and art::EventProcessor::endJob().
void art::ConsumesInfo::validateConsumedProduct | ( | BranchType const | bt, |
ModuleDescription const & | md, | ||
ProductInfo const & | productInfo | ||
) |
Definition at line 111 of file ConsumesInfo.cc.
References art::ModuleDescription::moduleLabel(), and art::errors::ProductRegistrationFailure.
Referenced by consumables(), art::ProductRetriever::getByLabel_(), art::ProductRetriever::getContainerForView_(), and art::ProductRetriever::getMany_().
|
private |
Definition at line 137 of file ConsumesInfo.h.
Referenced by consumables().
|
private |
Definition at line 142 of file ConsumesInfo.h.
|
mutableprivate |
Definition at line 129 of file ConsumesInfo.h.
|
private |
Definition at line 131 of file ConsumesInfo.h.