Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
art::ProductID Class Reference

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

Classes

struct  Hash
 

Public Types

using value_type = unsigned int
 

Public Member Functions

 ProductID ()=default
 
 ProductID (std::string const &canonicalProductName)
 
 ProductID (value_type const value)
 
void setID (std::string const &canonicalProductName)
 
bool isValid () const
 
auto value () const
 
bool operator< (ProductID const rh) const
 
bool operator> (ProductID const rh) const
 
bool operator== (ProductID const rh) const
 
bool operator!= (ProductID const rh) const
 

Static Public Member Functions

static ProductID invalid ()
 

Static Private Member Functions

static value_type toID (std::string const &branchName)
 

Private Attributes

value_type value_ {0u}
 

Friends

class ProductIDStreamer
 

Detailed Description

Definition at line 16 of file ProductID.h.

Member Typedef Documentation

using art::ProductID::value_type = unsigned int

Definition at line 18 of file ProductID.h.

Constructor & Destructor Documentation

art::ProductID::ProductID ( )
default
art::ProductID::ProductID ( std::string const &  canonicalProductName)
explicit
art::ProductID::ProductID ( value_type const  value)
explicit

Member Function Documentation

static ProductID art::ProductID::invalid ( )
inlinestatic

Definition at line 25 of file ProductID.h.

References art::canonicalProductName(), setID(), and string.

26  {
27  return ProductID{};
28  }
ProductID()=default
bool art::ProductID::isValid ( ) const
inline

Definition at line 33 of file ProductID.h.

References submit_hadd::u, and value_.

Referenced by art::RefCore::isNonnull().

34  {
35  return value_ != 0u;
36  }
value_type value_
Definition: ProductID.h:79
bool art::ProductID::operator!= ( ProductID const  rh) const
inline

Definition at line 59 of file ProductID.h.

References rh.

60  {
61  return !(*this == rh);
62  }
TH2 * rh
Definition: drawXsec.C:5
bool art::ProductID::operator< ( ProductID const  rh) const
inline

Definition at line 44 of file ProductID.h.

References value_.

45  {
46  return value_ < rh.value_;
47  }
TH2 * rh
Definition: drawXsec.C:5
value_type value_
Definition: ProductID.h:79
bool art::ProductID::operator== ( ProductID const  rh) const
inline

Definition at line 54 of file ProductID.h.

References value_.

55  {
56  return value_ == rh.value_;
57  }
TH2 * rh
Definition: drawXsec.C:5
value_type value_
Definition: ProductID.h:79
bool art::ProductID::operator> ( ProductID const  rh) const
inline

Definition at line 49 of file ProductID.h.

50  {
51  return rh < *this;
52  }
TH2 * rh
Definition: drawXsec.C:5
void art::ProductID::setID ( std::string const &  canonicalProductName)

Referenced by invalid().

static value_type art::ProductID::toID ( std::string const &  branchName)
staticprivate
auto art::ProductID::value ( ) const
inline

Definition at line 38 of file ProductID.h.

References value_.

Referenced by art::ProductID::Hash::operator()().

39  {
40  return value_;
41  }
value_type value_
Definition: ProductID.h:79

Friends And Related Function Documentation

friend class ProductIDStreamer
friend

Definition at line 75 of file ProductID.h.

Member Data Documentation

value_type art::ProductID::value_ {0u}
private

Definition at line 79 of file ProductID.h.

Referenced by isValid(), operator<(), operator==(), and value().


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