CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ProductProvenance Class Reference

#include <ProductProvenance.h>

Public Member Functions

BranchID const & branchID () const
 
ProductProvenance makeProductProvenance () const
 
Parentage const & parentage () const
 
ParentageID const & parentageID () const
 
 ProductProvenance ()
 
 ProductProvenance (BranchID bid)
 
 ProductProvenance (BranchID bid, ParentageID id)
 
 ProductProvenance (BranchID bid, std::vector< BranchID > const &parents)
 
 ProductProvenance (BranchID bid, std::vector< BranchID > &&parents)
 
void write (std::ostream &os) const
 

Private Attributes

BranchID branchID_
 
ParentageID parentageID_
 

Detailed Description

Definition at line 24 of file ProductProvenance.h.

Constructor & Destructor Documentation

edm::ProductProvenance::ProductProvenance ( )

Definition at line 15 of file ProductProvenance.cc.

15  :
16  branchID_(),
17  parentageID_()
18  {}
edm::ProductProvenance::ProductProvenance ( BranchID  bid)
explicit

Definition at line 20 of file ProductProvenance.cc.

20  :
21  branchID_(std::move(bid)),
22  parentageID_()
23  {}
def move(src, dest)
Definition: eostools.py:511
edm::ProductProvenance::ProductProvenance ( BranchID  bid,
ParentageID  id 
)

Definition at line 25 of file ProductProvenance.cc.

26  :
27  branchID_(std::move(bid)),
28  parentageID_(std::move(edid))
29  {}
def move(src, dest)
Definition: eostools.py:511
edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > const &  parents 
)

Definition at line 31 of file ProductProvenance.cc.

References edm::Parentage::id(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), AlCaHLTBitMon_ParallelJobs::p, parentageID_, and edm::Parentage::setParents().

32  :
33  branchID_(std::move(bid)),
34  parentageID_() {
35  Parentage p;
36  p.setParents(parents);
37  parentageID_ = p.id();
39  }
TPRegexp parents
Definition: eve_filter.cc:21
static ParentageRegistry * instance()
bool insertMapped(value_type const &v)
def move(src, dest)
Definition: eostools.py:511
edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > &&  parents 
)

Member Function Documentation

BranchID const& edm::ProductProvenance::branchID ( ) const
inline
ProductProvenance edm::ProductProvenance::makeProductProvenance ( ) const

Definition at line 52 of file ProductProvenance.cc.

52  {
53  return *this;
54  }
Parentage const & edm::ProductProvenance::parentage ( ) const
ParentageID const& edm::ProductProvenance::parentageID ( ) const
inline
void edm::ProductProvenance::write ( std::ostream &  os) const

Definition at line 66 of file ProductProvenance.cc.

References branchID(), and parentageID().

Referenced by pkg.AbstractPkg::generate(), and edm::operator<<().

66  {
67  os << "branch ID = " << branchID() << '\n';
68  os << "entry description ID = " << parentageID() << '\n';
69  }
BranchID const & branchID() const
ParentageID const & parentageID() const

Member Data Documentation

BranchID edm::ProductProvenance::branchID_
private

Definition at line 47 of file ProductProvenance.h.

Referenced by branchID().

ParentageID edm::ProductProvenance::parentageID_
private

Definition at line 48 of file ProductProvenance.h.

Referenced by parentage(), parentageID(), and ProductProvenance().