LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::productstatus Namespace Reference

Functions

constexpr ProductStatus present () noexcept
 
constexpr ProductStatus neverCreated () noexcept
 
constexpr ProductStatus dropped () noexcept
 
constexpr ProductStatus dummyToPreventDoubleCount () noexcept
 
constexpr ProductStatus unknown () noexcept
 
constexpr ProductStatus uninitialized () noexcept
 
constexpr bool present (ProductStatus const status) noexcept
 
constexpr bool neverCreated (ProductStatus const status) noexcept
 
constexpr bool dropped (ProductStatus const status) noexcept
 
constexpr bool dummyToPreventDoubleCount (ProductStatus const status) noexcept
 
constexpr bool unknown (ProductStatus const status) noexcept
 
constexpr bool uninitialized (ProductStatus const status) noexcept
 

Function Documentation

constexpr ProductStatus art::productstatus::dropped ( )
noexcept

Definition at line 20 of file ProductStatus.h.

Referenced by dropped().

21  {
22  return 0x2;
23  } // Product was not made successfully
constexpr bool art::productstatus::dropped ( ProductStatus const  status)
noexcept

Definition at line 52 of file ProductStatus.h.

References dropped().

53  {
54  return status == dropped();
55  }
constexpr bool dropped(ProductStatus const status) noexcept
Definition: ProductStatus.h:52
constexpr ProductStatus art::productstatus::dummyToPreventDoubleCount ( )
noexcept

Definition at line 25 of file ProductStatus.h.

Referenced by art::Principal::ctor_read_provenance(), dummyToPreventDoubleCount(), and art::Group::productAvailable().

26  {
27  return 0x3;
28  } // Product is a dummy placeholder object with an invalid range set to
constexpr bool art::productstatus::dummyToPreventDoubleCount ( ProductStatus const  status)
noexcept

Definition at line 57 of file ProductStatus.h.

References dummyToPreventDoubleCount().

58  {
59  return status == dummyToPreventDoubleCount();
60  }
constexpr bool dummyToPreventDoubleCount(ProductStatus const status) noexcept
Definition: ProductStatus.h:57
constexpr ProductStatus art::productstatus::neverCreated ( )
noexcept

Definition at line 15 of file ProductStatus.h.

Referenced by neverCreated(), and art::Group::productAvailable().

16  {
17  return 0x1;
18  } // Product was not made successfully
constexpr bool art::productstatus::neverCreated ( ProductStatus const  status)
noexcept

Definition at line 47 of file ProductStatus.h.

References neverCreated().

48  {
49  return status == neverCreated();
50  }
constexpr bool neverCreated(ProductStatus const status) noexcept
Definition: ProductStatus.h:47
constexpr bool art::productstatus::present ( ProductStatus const  status)
noexcept

Definition at line 42 of file ProductStatus.h.

References present().

43  {
44  return status == present();
45  }
constexpr bool present(ProductStatus const status) noexcept
Definition: ProductStatus.h:42
constexpr ProductStatus art::productstatus::uninitialized ( )
noexcept

Definition at line 36 of file ProductStatus.h.

Referenced by art::Group::productAvailable(), and uninitialized().

37  {
38  return 0xff;
39  } // Status not set
constexpr bool art::productstatus::uninitialized ( ProductStatus const  status)
noexcept

Definition at line 67 of file ProductStatus.h.

References uninitialized().

68  {
69  return status == uninitialized();
70  }
constexpr bool uninitialized(ProductStatus const status) noexcept
Definition: ProductStatus.h:67
constexpr ProductStatus art::productstatus::unknown ( )
noexcept

Definition at line 31 of file ProductStatus.h.

Referenced by art::Principal::ctor_read_provenance(), and unknown().

32  {
33  return 0xfe;
34  } // Status unknown (used for backward compatibility)
constexpr bool art::productstatus::unknown ( ProductStatus const  status)
noexcept

Definition at line 62 of file ProductStatus.h.

References unknown().

63  {
64  return status == unknown();
65  }
constexpr bool unknown(ProductStatus const status) noexcept
Definition: ProductStatus.h:62