LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::Parentage Class Reference

#include "Parentage.h"

Public Member Functions

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

Private Attributes

std::vector< ProductIDparents_ {}
 

Detailed Description

Definition at line 15 of file Parentage.h.

Constructor & Destructor Documentation

art::Parentage::Parentage ( std::vector< ProductID parents)
explicit

Definition at line 22 of file Parentage.cc.

22  : parents_{std::move(parents)}
23  {}
std::vector< ProductID > parents_
Definition: Parentage.h:32
art::Parentage::~Parentage ( )
default
art::Parentage::Parentage ( )
default
art::Parentage::Parentage ( Parentage const &  )
default
art::Parentage::Parentage ( Parentage &&  )
default

Member Function Documentation

ParentageID art::Parentage::id ( ) const

Definition at line 26 of file Parentage.cc.

References parents_.

27  {
28  ostringstream oss;
29  for (auto const pid : parents_) {
30  oss << pid << ' ';
31  }
32  string const stringrep{oss.str()};
33  return ParentageID{cet::MD5Digest{stringrep}.digest().toString()};
34  }
std::vector< ProductID > parents_
Definition: Parentage.h:32
Hash< ParentageType > ParentageID
Definition: ParentageID.h:8
Parentage & art::Parentage::operator= ( Parentage const &  )
default
Parentage & art::Parentage::operator= ( Parentage &&  )
default
vector< ProductID > const & art::Parentage::parents ( ) const

Definition at line 37 of file Parentage.cc.

References parents_.

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

38  {
39  return parents_;
40  }
std::vector< ProductID > parents_
Definition: Parentage.h:32

Member Data Documentation

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

Definition at line 32 of file Parentage.h.

Referenced by id(), and parents().


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