Public Member Functions | Private Attributes | List of all members
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_{move(parents)} {}
def move(depos, offset)
Definition: depos.py:107
std::vector< ProductID > parents_
Definition: Parentage.h:34
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 25 of file Parentage.cc.

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

Definition at line 36 of file Parentage.cc.

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

Member Data Documentation

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

Definition at line 34 of file Parentage.h.


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