LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::Parentage Class Reference

#include "Parentage.h"

Public Member Functions

 Parentage ()=default
 
 Parentage (std::vector< ProductID > const &parents)
 
ParentageID id () const
 
std::vector< ProductID > const & parents () const
 
std::vector< ProductID > & parents ()
 

Private Attributes

std::vector< ProductIDparents_ {}
 

Detailed Description

Definition at line 21 of file Parentage.h.

Constructor & Destructor Documentation

art::Parentage::Parentage ( )
default
art::Parentage::Parentage ( std::vector< ProductID > const &  parents)
explicit

Definition at line 8 of file Parentage.cc.

9  : parents_{parents}
10  {}
std::vector< ProductID > parents_
Definition: Parentage.h:41

Member Function Documentation

ParentageID art::Parentage::id ( ) const

Definition at line 13 of file Parentage.cc.

References parents_.

14  {
15  // This implementation is ripe for optimization.
16  std::ostringstream oss;
17  for (auto const pid : parents_) {
18  oss << pid << ' ';
19  }
20 
21  std::string const stringrep{oss.str()};
22  return ParentageID{cet::MD5Digest{stringrep}.digest().toString()};
23  }
Hash< ParentageType > ParentageID
Definition: ParentageID.h:8
std::vector< ProductID > parents_
Definition: Parentage.h:41
std::vector<ProductID> const& art::Parentage::parents ( void  ) const
inline

Definition at line 30 of file Parentage.h.

References parents_.

Referenced by art::OutputModule::fillDependencyGraph(), art::detail::KeptProvenance::insertAncestors(), art::markAncestors(), art::operator==(), and art::Provenance::parents().

31  {
32  return parents_;
33  }
std::vector< ProductID > parents_
Definition: Parentage.h:41
std::vector<ProductID>& art::Parentage::parents ( void  )
inline

Definition at line 35 of file Parentage.h.

References parents_.

36  {
37  return parents_;
38  }
std::vector< ProductID > parents_
Definition: Parentage.h:41

Member Data Documentation

std::vector<ProductID> art::Parentage::parents_ {}
private

Definition at line 41 of file Parentage.h.

Referenced by id(), and parents().


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