CMS 3D CMS Logo

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

#include <StableProvenance.h>

Public Member Functions

std::set< std::string > const & branchAliases () const
 
BranchDescription const & branchDescription () const
 
BranchID const & branchID () const
 
std::string const & branchName () const
 
std::string const & className () const
 
std::shared_ptr< BranchDescription const > const & constBranchDescriptionPtr () const
 
std::string const & friendlyClassName () const
 
std::string const & moduleLabel () const
 
std::string const & moduleName () const
 
BranchID const & originalBranchID () const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
void setBranchDescription (std::shared_ptr< BranchDescription const > const &p)
 
void setProductID (ProductID const &pid)
 
 StableProvenance ()
 
 StableProvenance (std::shared_ptr< BranchDescription const > const &p, ProductID const &pid)
 
void swap (StableProvenance &)
 
void write (std::ostream &os) const
 

Private Attributes

std::shared_ptr< BranchDescription const > branchDescription_
 
ProductID productID_
 

Detailed Description

Definition at line 30 of file StableProvenance.h.

Constructor & Destructor Documentation

◆ StableProvenance() [1/2]

edm::StableProvenance::StableProvenance ( )

Definition at line 13 of file StableProvenance.cc.

13 : StableProvenance{std::shared_ptr<BranchDescription const>(), ProductID()} {}

◆ StableProvenance() [2/2]

edm::StableProvenance::StableProvenance ( std::shared_ptr< BranchDescription const > const &  p,
ProductID const &  pid 
)

Definition at line 15 of file StableProvenance.cc.

16  : branchDescription_(p), productID_(pid) {}

Member Function Documentation

◆ branchAliases()

std::set<std::string> const& edm::StableProvenance::branchAliases ( ) const
inline

◆ branchDescription()

BranchDescription const& edm::StableProvenance::branchDescription ( ) const
inline

◆ branchID()

BranchID const& edm::StableProvenance::branchID ( ) const
inline

Definition at line 39 of file StableProvenance.h.

39 { return branchDescription().branchID(); }

References branchDescription(), and edm::BranchDescription::branchID().

Referenced by edm::Provenance::branchID().

◆ branchName()

std::string const& edm::StableProvenance::branchName ( ) const
inline

◆ className()

std::string const& edm::StableProvenance::className ( ) const
inline

Definition at line 42 of file StableProvenance.h.

42 { return branchDescription().className(); }

References branchDescription(), and edm::BranchDescription::className().

Referenced by edm::Provenance::className().

◆ constBranchDescriptionPtr()

std::shared_ptr<BranchDescription const> const& edm::StableProvenance::constBranchDescriptionPtr ( ) const
inline

Definition at line 37 of file StableProvenance.h.

37 { return branchDescription_; }

References branchDescription_.

Referenced by edm::Provenance::constBranchDescriptionPtr().

◆ friendlyClassName()

std::string const& edm::StableProvenance::friendlyClassName ( ) const
inline

◆ moduleLabel()

std::string const& edm::StableProvenance::moduleLabel ( ) const
inline

◆ moduleName()

std::string const& edm::StableProvenance::moduleName ( ) const
inline

Definition at line 44 of file StableProvenance.h.

44 { return branchDescription().moduleName(); }

References branchDescription(), and edm::BranchDescription::moduleName().

Referenced by edm::Provenance::moduleName().

◆ originalBranchID()

BranchID const& edm::StableProvenance::originalBranchID ( ) const
inline

◆ processName()

std::string const& edm::StableProvenance::processName ( ) const
inline

◆ productID()

ProductID const& edm::StableProvenance::productID ( ) const
inline

Definition at line 52 of file StableProvenance.h.

52 { return productID_; }

References productID_.

Referenced by edm::Provenance::productID().

◆ productInstanceName()

std::string const& edm::StableProvenance::productInstanceName ( ) const
inline

◆ setBranchDescription()

void edm::StableProvenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline

◆ setProductID()

void edm::StableProvenance::setProductID ( ProductID const &  pid)
inline

Definition at line 54 of file StableProvenance.h.

54 { productID_ = pid; }

References productID_.

Referenced by edm::Provenance::setProductID().

◆ swap()

void edm::StableProvenance::swap ( StableProvenance iOther)

Definition at line 27 of file StableProvenance.cc.

27  {
28  branchDescription_.swap(iOther.branchDescription_);
29  productID_.swap(iOther.productID_);
30  }

References branchDescription_, productID_, and edm::ProductID::swap().

Referenced by edm::Provenance::swap().

◆ write()

void edm::StableProvenance::write ( std::ostream &  os) const

Definition at line 18 of file StableProvenance.cc.

18  {
19  // This is grossly inadequate, but it is not critical for the first pass.
21  }

References branchDescription(), and edm::BranchDescription::write().

Referenced by pkg.AbstractPkg::generate(), and edm::Provenance::write().

Member Data Documentation

◆ branchDescription_

std::shared_ptr<BranchDescription const> edm::StableProvenance::branchDescription_
private

◆ productID_

ProductID edm::StableProvenance::productID_
private

Definition at line 62 of file StableProvenance.h.

Referenced by productID(), setProductID(), and swap().

edm::BranchDescription::productInstanceName
std::string const & productInstanceName() const
Definition: BranchDescription.h:81
edm::StableProvenance::branchDescription_
std::shared_ptr< BranchDescription const > branchDescription_
Definition: StableProvenance.h:61
edm::BranchDescription::write
void write(std::ostream &os) const
Definition: BranchDescription.cc:257
edm::BranchDescription::processName
std::string const & processName() const
Definition: BranchDescription.h:73
edm::BranchDescription::originalBranchID
BranchID const & originalBranchID() const
Definition: BranchDescription.h:77
edm::StableProvenance::branchDescription
BranchDescription const & branchDescription() const
Definition: StableProvenance.h:36
edm::BranchDescription::friendlyClassName
std::string const & friendlyClassName() const
Definition: BranchDescription.h:80
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ProductID::swap
void swap(ProductID &other)
Definition: ProductID.cc:16
edm::BranchDescription::branchName
std::string const & branchName() const
Definition: BranchDescription.h:120
edm::StableProvenance::StableProvenance
StableProvenance()
Definition: StableProvenance.cc:13
edm::BranchDescription::moduleName
std::string const & moduleName() const
Definition: BranchDescription.h:116
edm::BranchDescription::moduleLabel
std::string const & moduleLabel() const
Definition: BranchDescription.h:72
edm::BranchDescription::branchAliases
std::set< std::string > const & branchAliases() const
Definition: BranchDescription.h:118
edm::StableProvenance::productID_
ProductID productID_
Definition: StableProvenance.h:62
edm::BranchDescription::className
std::string const & className() const
Definition: BranchDescription.h:79
edm::BranchDescription::branchID
BranchID const & branchID() const
Definition: BranchDescription.h:74