1 #ifndef DataFormats_Common_RefProd_h 2 #define DataFormats_Common_RefProd_h 161 template <
typename C>
167 template <
typename C>
172 template <
typename C>
177 template <
typename C>
179 return lhs.refCore() == rhs.refCore();
182 template <
typename C>
184 return !(lhs == rhs);
187 template <
typename C>
188 inline bool operator<(RefProd<C>
const& lhs,
RefProd<C> const& rhs) {
189 return (lhs.refCore() < rhs.refCore());
192 template <
typename C>
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
RefProd()
Default constructor needed for reading from persistent store. Not for direct use. ...
bool hasCache() const
Checks if product is in memory.
EDProductGetter const * mustBeNonZero(EDProductGetter const *prodGetter, std::string refType, ProductID const &productID)
#define CMS_CLASS_VERSION(_version_)
void const * productPtr() const
RefProd(Handle< C > const &handle)
General purpose constructor from handle.
void swap(Association< C > &lhs, Association< C > &rhs)
RefCore const & refCore() const
RefProd(OrphanHandle< C > const &handle)
General purpose constructor from orphan handle.
product_type const & operator*() const
Dereference operator.
bool isTransient() const
Checks if this RefProd is transient (i.e. not persistable).
bool operator!() const
Checks for null.
void checkTypeAtCompileTime(C const *)
bool isNonnull() const
Checks for non-null.
RefProd(TestHandle< C > const &handle)
General purpose constructor from test handle.
void swap(RefProd< C > &)
def template(fileName, svg, replaceme="REPLACEME")
bool hasProductCache() const
Checks if product is in memory.
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
ProductID id() const
Accessor for product ID.
product_type const * operator->() const
Member dereference operator.
edm::RefProd< Container > RefProd
EDProductGetter const * productGetter() const
Accessor for product getter.
RefProd(ProductID const &productID, EDProductGetter const *prodGetter)
bool isNull() const
Checks for null.
RefProd(C const *iProduct)
Constructor for ref to object that is not in an event.
EDProductGetter const * productGetter() const
product_type const * product() const