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;
86 present(ptr.
get() != 0),
100 std::unique_ptr<T>
temp(ptr);
130 assert(wrappedNewProduct !=
nullptr);
144 assert(wrappedNewProduct !=
nullptr);
149 #include "DataFormats/Common/interface/WrapperView.icc"
T const * operator->() const
virtual void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndices, std::vector< void const * > &oPtr) const override
virtual std::type_info const & wrappedTypeInfo_() 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 std::type_info const & valueTypeInfo_() const override
virtual bool isProductEqual_(WrapperBase const *newProduct) const override
virtual std::type_info const & dynamicTypeInfo_() const override
virtual bool isPresent_() const override
T const * product() const
virtual void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const override
virtual bool mergeProduct_(WrapperBase const *newProduct) override
virtual bool isMergeable_() const override
virtual std::type_info const & memberTypeInfo_() const override
volatile std::atomic< bool > shutdown_flag false
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()
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const override