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()} {
15  }
edm::StableProvenance::StableProvenance ( std::shared_ptr< BranchDescription const > const &  p,
ProductID const &  pid 
)

Definition at line 17 of file StableProvenance.cc.

17  :
19  productID_(pid),
20  processHistory_() {
21  }
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 24 of file StableProvenance.cc.

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

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

24  {
26  }
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().

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 29 of file StableProvenance.cc.

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

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

29  {
30  ProcessConfiguration pc;
31  assert(getProcessConfiguration(pc));
32  return pc.releaseVersion();
33  }
bool getProcessConfiguration(ProcessConfiguration &pc) const
void edm::StableProvenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline

Definition at line 64 of file StableProvenance.h.

References branchDescription_, AlCaHLTBitMon_ParallelJobs::p, and swap().

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

64  {
66  }
std::shared_ptr< BranchDescription const > branchDescription_
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 sysUtil::pid, and productID_.

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

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

Definition at line 47 of file StableProvenance.cc.

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

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

47  {
48  branchDescription_.swap(iOther.branchDescription_);
49  productID_.swap(iOther.productID_);
50  std::swap(processHistory_, iOther.processHistory_);
51  }
void swap(ProductID &other)
Definition: ProductID.cc:17
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 36 of file StableProvenance.cc.

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

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

36  {
37  // This is grossly inadequate, but it is not critical for the first pass.
39  }
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 72 of file StableProvenance.h.

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