1 #ifndef DataFormats_Common_RefToBaseProd_h 2 #define DataFormats_Common_RefToBaseProd_h 102 template <
typename T>
109 template <
typename T>
117 template <
typename T>
119 return *operator->();
123 template <
typename T>
126 auto getter = product_.productGetter();
127 if (getter !=
nullptr) {
128 if (product_.isNull()) {
132 std::vector<void const*> pointers;
135 if (
prod ==
nullptr) {
140 if (product_.tryToSetProductPtrForFirstTime(
tmp.get())) {
147 template <
typename T>
152 template <
typename T>
154 return lhs.refCore() == rhs.refCore();
157 template <
typename T>
159 return !(lhs == rhs);
162 template <
typename T>
164 return (lhs.refCore() < rhs.refCore());
167 template <
typename T>
176 template <
typename T>
177 template <
typename C>
179 std::vector<void const*> pointers;
185 template <
typename T>
186 template <
typename C>
189 std::vector<void const*> pointers;
195 template <
typename T>
196 template <
typename C>
199 std::vector<void const*> pointers;
205 template <
typename T>
207 : product_(
id, nullptr, getter,
false) {}
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const *> &pointers, FillViewHelperVector &helpers)
~RefToBaseProd()
Destructor.
#define CMS_CLASS_VERSION(_version_)
void const * productPtr() const
void swap(Association< C > &lhs, Association< C > &rhs)
RefCore const & refCore() const
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
ProductID id() const
Accessor for product ID.
EDProductGetter const * productGetter() const
Accessor for product getter.
bool isNonnull() const
Checks for non-null.
product_type const * operator->() const
Member dereference operator.
RefToBaseProd()
Default constructor needed for reading from persistent store. Not for direct use. ...
void setProductPtr(void const *prodPtr) const
RefToBaseProd< T > & operator=(const RefToBaseProd< T > &other)
product_type const * product() const
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
ProductID id() const
Accessor for product ID.
RefCore const & refCore() const
bool hasCache() const
Checks if product is in memory.
View< T > const * viewPtr() const
bool operator!() const
Checks for null.
EDProductGetter const * productGetter() const
void swap(RefToBaseProd< T > &)
product_type const & operator*() const
Dereference operator.
product_type const * product() const
bool isNull() const
Checks for null.
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector