Functions
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.

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.

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.

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.

58  {
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.

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.

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

Definition at line 10 of file ProductStatus.h.

11  {
12  return 0x0;
13  } // Product was made successfully
constexpr bool art::productstatus::present ( ProductStatus const  status)
noexcept

Definition at line 42 of file ProductStatus.h.

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.

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.

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.

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.

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