Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::ProductProvenance Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Provenance/ProductProvenance.h"

Classes

struct  Transients
 

Public Member Functions

 ProductProvenance ()=default
 
 ProductProvenance (ProductID pid)
 
 ProductProvenance (ProductID pid, ProductStatus status)
 
 ProductProvenance (ProductID pid, ProductStatus status, std::shared_ptr< Parentage > parentagePtr)
 
 ProductProvenance (ProductID pid, ProductStatus status, ParentageID const &id)
 
 ProductProvenance (ProductID pid, ProductStatus status, std::vector< ProductID > const &parents)
 
void write (std::ostream &os) const
 
ProductID productID () const noexcept
 
ProductStatus productStatus () const noexcept
 
ParentageID const & parentageID () const noexcept
 
Parentage const & parentage () const
 
void setStatus (ProductStatus const status) const noexcept
 
void setPresent () const noexcept
 
void setNotPresent () const noexcept
 
bool noParentage () const noexcept
 

Private Member Functions

std::shared_ptr< Parentage > & parentagePtr () const noexcept
 

Private Attributes

ProductID productID_ {}
 
ProductStatus productStatus_ {productstatus::uninitialized()}
 
ParentageID parentageID_ {}
 
Transient< Transientstransients_ {}
 

Detailed Description

Definition at line 34 of file ProductProvenance.h.

Constructor & Destructor Documentation

art::ProductProvenance::ProductProvenance ( )
default
art::ProductProvenance::ProductProvenance ( ProductID  pid)
explicit
art::ProductProvenance::ProductProvenance ( ProductID  pid,
ProductStatus  status 
)
art::ProductProvenance::ProductProvenance ( ProductID  pid,
ProductStatus  status,
std::shared_ptr< Parentage parentagePtr 
)
art::ProductProvenance::ProductProvenance ( ProductID  pid,
ProductStatus  status,
ParentageID const &  id 
)
art::ProductProvenance::ProductProvenance ( ProductID  pid,
ProductStatus  status,
std::vector< ProductID > const &  parents 
)

Member Function Documentation

bool art::ProductProvenance::noParentage ( ) const
inlinenoexcept

Definition at line 80 of file ProductProvenance.h.

References transients_.

81  {
82  return transients_.get().noParentage_;
83  }
Transient< Transients > transients_
Parentage const& art::ProductProvenance::parentage ( ) const
ParentageID const& art::ProductProvenance::parentageID ( ) const
inlinenoexcept

Definition at line 66 of file ProductProvenance.h.

References parentage(), and parentageID_.

67  {
68  return parentageID_;
69  }
std::shared_ptr<Parentage>& art::ProductProvenance::parentagePtr ( ) const
inlineprivatenoexcept

Definition at line 93 of file ProductProvenance.h.

References transients_.

94  {
95  return transients_.get().parentagePtr_;
96  }
Transient< Transients > transients_
ProductID art::ProductProvenance::productID ( ) const
inlinenoexcept

Definition at line 56 of file ProductProvenance.h.

References productID_.

57  {
58  return productID_;
59  }
ProductStatus art::ProductProvenance::productStatus ( ) const
inlinenoexcept

Definition at line 61 of file ProductProvenance.h.

References productStatus_.

Referenced by art::Provenance::productStatus().

62  {
63  return productStatus_;
64  }
ProductStatus productStatus_
void art::ProductProvenance::setNotPresent ( ) const
noexcept

Referenced by setStatus().

void art::ProductProvenance::setPresent ( ) const
noexcept

Referenced by setStatus().

void art::ProductProvenance::setStatus ( ProductStatus const  status) const
inlinenoexcept

Definition at line 72 of file ProductProvenance.h.

References productStatus_, setNotPresent(), setPresent(), and fabricate::status.

73  {
75  }
int status
Definition: fabricate.py:1613
ProductStatus productStatus_
void art::ProductProvenance::write ( std::ostream &  os) const

Referenced by art::operator<<().

Member Data Documentation

ParentageID art::ProductProvenance::parentageID_ {}
private

Definition at line 100 of file ProductProvenance.h.

Referenced by parentageID().

ProductID art::ProductProvenance::productID_ {}
private

Definition at line 98 of file ProductProvenance.h.

Referenced by productID().

ProductStatus art::ProductProvenance::productStatus_ {productstatus::uninitialized()}
mutableprivate

Definition at line 99 of file ProductProvenance.h.

Referenced by productStatus(), and setStatus().

Transient<Transients> art::ProductProvenance::transients_ {}
mutableprivate

Definition at line 101 of file ProductProvenance.h.

Referenced by noParentage(), and parentagePtr().


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