1 #ifndef DataFormats_Common_Wrapper_h 2 #define DataFormats_Common_Wrapper_h 25 class Wrapper :
public WrapperBase {
30 explicit Wrapper(std::unique_ptr<T> ptr);
58 std::vector<void const*>& pointers,
60 virtual void do_setPtr(std::type_info
const& iToType,
62 void const*& oPtr)
const override;
64 std::vector<unsigned long>
const& iIndices,
65 std::vector<void const*>& oPtr)
const override;
100 std::unique_ptr<T>
temp(ptr);
130 assert(wrappedNewProduct !=
nullptr);
144 assert(wrappedNewProduct !=
nullptr);
149 #include "DataFormats/Common/interface/WrapperView.icc" virtual void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const override
T const * operator->() const
virtual bool isProductEqual_(WrapperBase const *newProduct) const override
virtual void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndices, std::vector< void const * > &oPtr) const override
virtual bool isPresent_() const override
virtual std::type_info const & wrappedTypeInfo_() const override
virtual std::type_info const & valueTypeInfo_() const override
void swap_or_assign(T &a, T &b)
static std::type_info const & productTypeInfo()
#define CMS_CLASS_VERSION(_version_)
virtual bool hasIsProductEqual_() const override
virtual bool isMergeable_() const override
T const * product() const
virtual std::type_info const & dynamicTypeInfo_() const override
virtual std::type_info const & memberTypeInfo_() const override
virtual bool mergeProduct_(WrapperBase const *newProduct) override
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const override
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
Wrapper< T > & operator=(Wrapper< T > const &)
T get(const Candidate &c)
static std::type_info const & typeInfo()