1 #ifndef DataFormats_Common_Wrapper_h
2 #define DataFormats_Common_Wrapper_h
24 class Wrapper :
public WrapperBase {
29 explicit Wrapper(std::unique_ptr<T> ptr);
33 template <
typename... Args>
34 explicit Wrapper(Emplace, Args&&...);
66 std::vector<void const*>& pointers,
68 void do_setPtr(std::type_info
const& iToType,
unsigned long iIndex,
void const*& oPtr)
const override;
70 std::vector<unsigned long>
const& iIndices,
71 std::vector<void const*>& oPtr)
const override;
73 std::shared_ptr<soa::TableExaminerBase>
tableExaminer_()
const override;
88 template <
typename... Args>
93 std::unique_ptr<T>
temp(ptr);
104 template <
typename T>
109 template <
typename T>
114 template <
typename T>
117 assert(wrappedNewProduct !=
nullptr);
121 template <
typename T>
126 template <
typename T>
129 assert(wrappedNewProduct !=
nullptr);
133 template <
typename T>
138 template <
typename T>
141 assert(wrappedNewProduct !=
nullptr);
148 static std::shared_ptr<edm::soa::TableExaminerBase>
make(
void const*) {
149 return std::shared_ptr<edm::soa::TableExaminerBase>{};
153 template <
typename T>
160 #include "DataFormats/Common/interface/WrapperView.icc"
T const * operator->() const
bool hasSwap_() const override
static std::shared_ptr< edm::soa::TableExaminerBase > make(void const *)
bool isPresent_() const override
static std::type_info const & productTypeInfo()
#define CMS_CLASS_VERSION(_version_)
bool hasIsProductEqual_() const override
std::type_info const & valueTypeInfo_() const override
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
T const * product() const
void swapProduct_(WrapperBase *newProduct) override
bool mergeProduct_(WrapperBase const *newProduct) override
std::type_info const & wrappedTypeInfo_() const override
void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const override
Wrapper< T > & operator=(Wrapper< T > const &)=delete
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) noexcept(false)
bool isMergeable_() const override
std::type_info const & memberTypeInfo_() const override
std::shared_ptr< soa::TableExaminerBase > tableExaminer_() const override
std::type_info const & dynamicTypeInfo_() const override
static std::type_info const & typeInfo()
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector