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
 
bool getProcessConfiguration (ProcessConfiguration &pc) const
 
std::string const & moduleLabel () const
 
std::string const & moduleName () const
 
BranchID const & originalBranchID () const
 
ProcessHistory const & processHistory () const
 
ProcessHistory const * processHistoryPtr () const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ReleaseVersion releaseVersion () const
 
void setBranchDescription (std::shared_ptr< BranchDescription const > const &p)
 
void setProcessHistory (ProcessHistory const &ph)
 
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_
 
ProcessHistory const * processHistory_
 
ProductID productID_
 

Detailed Description

Definition at line 30 of file StableProvenance.h.

Constructor & Destructor Documentation

edm::StableProvenance::StableProvenance ( )

Definition at line 14 of file StableProvenance.cc.

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

Definition at line 16 of file StableProvenance.cc.

ProcessHistory const * processHistory_
std::shared_ptr< BranchDescription const > branchDescription_

Member Function Documentation

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

Definition at line 52 of file StableProvenance.h.

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

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

52 { return branchDescription().branchAliases(); }
BranchDescription const & branchDescription() const
std::set< std::string > const & branchAliases() const
BranchDescription const& edm::StableProvenance::branchDescription ( ) const
inline
BranchID const& edm::StableProvenance::branchID ( ) const
inline

Definition at line 39 of file StableProvenance.h.

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

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

39 { return branchDescription().branchID(); }
BranchDescription const & branchDescription() const
BranchID const & branchID() const
std::string const& edm::StableProvenance::branchName ( ) const
inline

Definition at line 41 of file StableProvenance.h.

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

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

41 { return branchDescription().branchName(); }
std::string const & branchName() const
BranchDescription const & branchDescription() const
std::string const& edm::StableProvenance::className ( ) const
inline

Definition at line 42 of file StableProvenance.h.

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

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

42 { return branchDescription().className(); }
BranchDescription const & branchDescription() const
std::string const & className() const
std::shared_ptr<BranchDescription const> const& edm::StableProvenance::constBranchDescriptionPtr ( ) const
inline

Definition at line 37 of file StableProvenance.h.

References branchDescription_.

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

37 { return branchDescription_; }
std::shared_ptr< BranchDescription const > branchDescription_
std::string const& edm::StableProvenance::friendlyClassName ( ) const
inline

Definition at line 47 of file StableProvenance.h.

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

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

BranchDescription const & branchDescription() const
std::string const & friendlyClassName() const
bool edm::StableProvenance::getProcessConfiguration ( ProcessConfiguration pc) const

Definition at line 19 of file StableProvenance.cc.

References edm::ProcessHistory::getConfigurationForProcess(), processHistory_, and processName().

Referenced by edm::Provenance::getProcessConfiguration(), processHistoryPtr(), and releaseVersion().

19  {
21  }
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
std::string const & processName() const
ProcessHistory const * processHistory_
std::string const& edm::StableProvenance::moduleLabel ( ) const
inline

Definition at line 43 of file StableProvenance.h.

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

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

43 { return branchDescription().moduleLabel(); }
BranchDescription const & branchDescription() const
std::string const & moduleLabel() const
std::string const& edm::StableProvenance::moduleName ( ) const
inline

Definition at line 44 of file StableProvenance.h.

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

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

44 { return branchDescription().moduleName(); }
BranchDescription const & branchDescription() const
std::string const & moduleName() const
BranchID const& edm::StableProvenance::originalBranchID ( ) const
inline

Definition at line 40 of file StableProvenance.h.

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

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

40 { return branchDescription().originalBranchID(); }
BranchDescription const & branchDescription() const
BranchID const & originalBranchID() const
ProcessHistory const& edm::StableProvenance::processHistory ( ) const
inline

Definition at line 48 of file StableProvenance.h.

References processHistory_.

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

48 { return *processHistory_; }
ProcessHistory const * processHistory_
ProcessHistory const* edm::StableProvenance::processHistoryPtr ( ) const
inline

Definition at line 49 of file StableProvenance.h.

References getProcessConfiguration(), processHistory_, and releaseVersion().

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

49 { return processHistory_; }
ProcessHistory const * processHistory_
std::string const& edm::StableProvenance::processName ( ) const
inline

Definition at line 45 of file StableProvenance.h.

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

Referenced by getProcessConfiguration(), and edm::Provenance::processName().

45 { return branchDescription().processName(); }
BranchDescription const & branchDescription() const
std::string const & processName() const
ProductID const& edm::StableProvenance::productID ( ) const
inline

Definition at line 58 of file StableProvenance.h.

References productID_.

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

58 { return productID_; }
std::string const& edm::StableProvenance::productInstanceName ( ) const
inline

Definition at line 46 of file StableProvenance.h.

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

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

BranchDescription const & branchDescription() const
std::string const & productInstanceName() const
ReleaseVersion edm::StableProvenance::releaseVersion ( ) const

Definition at line 23 of file StableProvenance.cc.

References getProcessConfiguration(), and edm::ProcessConfiguration::releaseVersion().

Referenced by processHistoryPtr(), and edm::Provenance::releaseVersion().

23  {
24  ProcessConfiguration pc;
25  assert(getProcessConfiguration(pc));
26  return pc.releaseVersion();
27  }
bool getProcessConfiguration(ProcessConfiguration &pc) const
void edm::StableProvenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline
void edm::StableProvenance::setProcessHistory ( ProcessHistory const &  ph)
inline

Definition at line 56 of file StableProvenance.h.

References processHistory_.

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

56 { processHistory_ = &ph; }
ProcessHistory const * processHistory_
void edm::StableProvenance::setProductID ( ProductID const &  pid)
inline

Definition at line 60 of file StableProvenance.h.

References productID_.

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

60 { productID_ = pid; }
void edm::StableProvenance::swap ( StableProvenance iOther)

Definition at line 38 of file StableProvenance.cc.

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

Referenced by setBranchDescription(), and edm::Provenance::swap().

38  {
39  branchDescription_.swap(iOther.branchDescription_);
40  productID_.swap(iOther.productID_);
41  std::swap(processHistory_, iOther.processHistory_);
42  }
void swap(ProductID &other)
Definition: ProductID.cc:16
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ProcessHistory const * processHistory_
std::shared_ptr< BranchDescription const > branchDescription_
void edm::StableProvenance::write ( std::ostream &  os) const

Definition at line 29 of file StableProvenance.cc.

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

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

29  {
30  // This is grossly inadequate, but it is not critical for the first pass.
32  }
BranchDescription const & branchDescription() const
void write(std::ostream &os) const

Member Data Documentation

std::shared_ptr<BranchDescription const> edm::StableProvenance::branchDescription_
private
ProcessHistory const* edm::StableProvenance::processHistory_
private
ProductID edm::StableProvenance::productID_
private

Definition at line 68 of file StableProvenance.h.

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