1 #ifndef DataFormats_Provenance_ProductResolverIndexHelper_h 2 #define DataFormats_Provenance_ProductResolverIndexHelper_h 65 #include <unordered_map> 71 namespace productholderindexhelper {
89 TypeID const& wrappedtypeID,
125 char const*
process =
nullptr)
const;
128 std::unordered_multimap<std::string, std::tuple<TypeID const*, const char*, ProductResolverIndex>>;
134 unsigned int startInIndexAndNames,
187 TypeID const& containedTypeID,
188 std::vector<TypeID>* baseTypesOfContainedType);
258 void print(std::ostream&
os)
const;
unsigned int processIndex(char const *process) const
ProductResolverIndexHelper()
TypeID getContainedType(TypeID const &typeID)
void setIndex(ProductResolverIndex v)
bool operator<(Item const &right) const
std::vector< TypeID > sortedTypeIDs_
unsigned int startInBigNamesContainer_
unsigned int ProductResolverIndex
std::string const & process() const
ProductResolverIndex index_
Item(KindOfType kindOfType, TypeID const &typeID, std::string const &moduleLabel, std::string const &instance, std::string const &process, ProductResolverIndex index)
TypeID getContainedTypeFromWrapper(TypeID const &wrappedtypeID, std::string const &className)
static PFTauRenderPlugin instance
std::vector< char > processNames_
ProductResolverIndex index_
ModulesToIndiciesMap indiciesForModulesInProcess(const std::string &iProcessName) const
void print(std::ostream &os) const
std::string const & moduleLabel() const
std::vector< Range > const & ranges() const
unsigned int startInIndexAndNames_
unsigned int beginElements() const
Matches relatedIndexes(KindOfType kindOfType, TypeID const &typeID, char const *moduleLabel, char const *instance) const
Range(unsigned int begin, unsigned int end)
Matches(ProductResolverIndexHelper const *productResolverIndexHelper, unsigned int startInIndexAndNames, unsigned int numberOfMatches)
edm::propagate_const< std::unique_ptr< std::set< std::string > > > processItems_
unsigned int startInProcessNames_
ProductResolverIndex index(KindOfType kindOfType, TypeID const &typeID, char const *moduleLabel, char const *instance, char const *process=nullptr) const
std::vector< char > const & processNames() const
std::string const & instance() const
unsigned int indexToIndexAndNames(KindOfType kindOfType, TypeID const &typeID, char const *moduleLabel, char const *instance, char const *process) const
unsigned int startInBigNamesContainer() const
KindOfType kindOfType() const
bool typeIsViewCompatible(TypeID const &requestedViewType, TypeID const &wrappedtypeID, std::string const &className)
std::vector< Range > ranges_
char const * moduleLabel(unsigned int i) const
ProductResolverIndex index(unsigned int i) const
ProductResolverIndex nextIndexValue_
std::vector< IndexAndNames > indexAndNames_
char const * processName(unsigned int i) const
std::vector< std::string > lookupProcessNames_
std::vector< TypeID > const & sortedTypeIDs() const
unsigned int begin() const
ProductResolverIndex insert(TypeID const &typeID, char const *moduleLabel, char const *instance, char const *process, TypeID const &containedTypeID, std::vector< TypeID > *baseTypesOfContainedType)
unsigned int numberOfMatches_
unsigned int indexToType(KindOfType kindOfType, TypeID const &typeID) const
std::vector< IndexAndNames > const & indexAndNames() const
ProductResolverIndex nextIndexValue() const
TypeID const & typeID() const
ProductResolverIndex index() const
ProductResolverIndexHelper const * productResolverIndexHelper_
std::vector< std::string > const & lookupProcessNames() const
unsigned int beginElements_
unsigned int startInProcessNames() const
IndexAndNames(ProductResolverIndex index, unsigned int start, unsigned int startProcess)
unsigned int numberOfMatches() const
ProductResolverIndex index() const
std::unordered_multimap< std::string, std::tuple< TypeID const *, const char *, ProductResolverIndex > > ModulesToIndiciesMap
edm::propagate_const< std::unique_ptr< std::set< Item > > > items_
std::string className(const T &t)
char const * productInstanceName(unsigned int i) const
std::vector< char > bigNamesContainer_