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);
32 template<
typename... Args>
65 std::vector<void const*>& pointers,
67 void do_setPtr(std::type_info
const& iToType,
69 void const*& oPtr)
const override;
71 std::vector<unsigned long>
const& iIndices,
72 std::vector<void const*>& oPtr)
const override;
74 std::shared_ptr<soa::TableExaminerBase>
tableExaminer_()
const override;
97 template<
typename... Args>
109 std::unique_ptr<T>
temp(ptr);
137 assert(wrappedNewProduct !=
nullptr);
151 assert(wrappedNewProduct !=
nullptr);
165 assert(wrappedNewProduct !=
nullptr);
172 static std::shared_ptr<edm::soa::TableExaminerBase>
make(
void const*) {
173 return std::shared_ptr<edm::soa::TableExaminerBase>{};
177 template <
typename T>
185 #include "DataFormats/Common/interface/WrapperView.icc"
T const * operator->() const
bool isProductEqual_(WrapperBase const *newProduct) const override
void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndices, std::vector< void const * > &oPtr) const override
static std::shared_ptr< edm::soa::TableExaminerBase > make(void const *)
std::type_info const & valueTypeInfo_() const override
std::type_info const & wrappedTypeInfo_() const override
static std::type_info const & productTypeInfo()
#define CMS_CLASS_VERSION(_version_)
bool hasSwap_() const override
std::type_info const & dynamicTypeInfo_() const override
bool isPresent_() const override
std::shared_ptr< soa::TableExaminerBase > tableExaminer_() const override
bool hasIsProductEqual_() const override
void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const override
bool isMergeable_() const override
void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const override
T const & get(Event const &event, InputTag const &tag)(false)
T const * product() const
void swapProduct_(WrapperBase *newProduct) override
std::type_info const & memberTypeInfo_() const override
bool mergeProduct_(WrapperBase const *newProduct) override
Wrapper< T > & operator=(Wrapper< T > const &)=delete
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
static std::type_info const & typeInfo()