Public Member Functions | Public Attributes | List of all members
art::ProductTable Struct Reference

#include <ProductTables.h>

Public Member Functions

 ProductTable ()=default
 
 ProductTable (ProductDescriptions const &descriptions, BranchType bt)
 
cet::exempt_ptr< BranchDescription const > description (ProductID) const
 

Public Attributes

bool isValid {false}
 
ProductDescriptionsByID descriptions {}
 
ProductLookup_t productLookup {}
 
ViewLookup_t viewLookup {}
 

Detailed Description

Definition at line 18 of file ProductTables.h.

Constructor & Destructor Documentation

art::ProductTable::ProductTable ( )
default
art::ProductTable::ProductTable ( ProductDescriptions const &  descriptions,
BranchType  bt 
)
explicit

Definition at line 42 of file ProductTables.cc.

44  : isValid{true}
45  , descriptions{descriptions_for_branch_type(bt, descs)}
48 {}
ProductDescriptionsByID descriptions
Definition: ProductTables.h:27
ViewLookup_t createViewLookups(ProductDescriptionsByID const &descriptions)
bt
Definition: tracks.py:83
ProductLookup_t createProductLookups(ProductDescriptionsByID const &descriptions)
ViewLookup_t viewLookup
Definition: ProductTables.h:29
ProductLookup_t productLookup
Definition: ProductTables.h:28

Member Function Documentation

cet::exempt_ptr< art::BranchDescription const > art::ProductTable::description ( ProductID  pid) const

Definition at line 51 of file ProductTables.cc.

52 {
53  if (auto it = descriptions.find(pid); it != cend(descriptions)) {
54  return cet::make_exempt_ptr(&it->second);
55  }
56  return nullptr;
57 }
decltype(auto) constexpr cend(T &&obj)
ADL-aware version of std::cend.
Definition: StdUtils.h:87
ProductDescriptionsByID descriptions
Definition: ProductTables.h:27
constexpr exempt_ptr< E > make_exempt_ptr(E *) noexcept

Member Data Documentation

ProductDescriptionsByID art::ProductTable::descriptions {}

Definition at line 27 of file ProductTables.h.

bool art::ProductTable::isValid {false}

Definition at line 26 of file ProductTables.h.

ProductLookup_t art::ProductTable::productLookup {}

Definition at line 28 of file ProductTables.h.

ViewLookup_t art::ProductTable::viewLookup {}

Definition at line 29 of file ProductTables.h.


The documentation for this struct was generated from the following files: