1 #ifndef DataFormats_Common_RefProd_h 2 #define DataFormats_Common_RefProd_h 163 template <
typename C>
169 template <
typename C>
174 template <
typename C>
179 template <
typename C>
181 return lhs.refCore() == rhs.refCore();
184 template <
typename C>
186 return !(lhs == rhs);
189 template <
typename C>
190 inline bool operator<(RefProd<C>
const& lhs,
RefProd<C> const& rhs) {
191 return (lhs.refCore() < rhs.refCore());
194 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