1 #ifndef DataFormats_Common_RefToBaseProd_h 2 #define DataFormats_Common_RefToBaseProd_h 57 product_type
const*
get()
const {
141 if(getter !=
nullptr) {
144 "attempting get view from a null RefToBaseProd.\n");
147 std::vector<void const*> pointers;
150 if(prod ==
nullptr) {
152 "attempting to get view from an unavailable RefToBaseProd.");
154 prod->
fillView(tId, pointers, helpers);
155 std::unique_ptr<View<T>>
tmp{
new View<T>(pointers, helpers, getter) };
173 return lhs.refCore() == rhs.refCore();
180 return !(lhs == rhs);
187 return (lhs.refCore() < rhs.refCore());
204 std::vector<void const*> pointers;
215 std::vector<void const*> pointers;
217 fillView(* handle, handle.
id(), pointers, helpers);
226 std::vector<void const*> pointers;
228 fillView(* handle, handle.
id(), pointers, helpers);
View< T > const * viewPtr() const
~RefToBaseProd()
Destructor.
void setProductPtr(void const *prodPtr) const
product_type const * operator->() const
Member dereference operator.
bool tryToSetProductPtrForFirstTime(void const *prodPtr) const
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
#define CMS_CLASS_VERSION(_version_)
void fillView(ProductID const &id, std::vector< void const * > &view, FillViewHelperVector &helpers) const
void swap(Association< C > &lhs, Association< C > &rhs)
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
RefCore const & refCore() const
RefToBaseProd()
Default constructor needed for reading from persistent store. Not for direct use. ...
bool hasCache() const
Checks if product is in memory.
product_type const * product() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
void const * productPtr() const
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers)
RefCore const & refCore() const
RefToBaseProd< T > & operator=(const RefToBaseProd< T > &other)
ProductID id() const
Accessor for product ID.
EDProductGetter const * productGetter() const
Accessor for product getter.
ProductID id() const
Accessor for product ID.
EDProductGetter const * productGetter() const
product_type const * product() const
std::vector< std::vector< double > > tmp
bool operator!() const
Checks for null.
product_type const & operator*() const
Dereference operator.
bool isNull() const
Checks for null.
void swap(RefToBaseProd< T > &)
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
bool isNonnull() const
Checks for non-null.