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 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;
67 std::shared_ptr<soa::TableExaminerBase>
tableExaminer_()
const override;
102 std::unique_ptr<T>
temp(ptr);
132 assert(wrappedNewProduct !=
nullptr);
146 assert(wrappedNewProduct !=
nullptr);
153 static std::shared_ptr<edm::soa::TableExaminerBase>
make(
void const*) {
154 return std::shared_ptr<edm::soa::TableExaminerBase>{};
158 template <
typename T>
166 #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
void swap_or_assign(T &a, T &b)
static std::type_info const & productTypeInfo()
#define CMS_CLASS_VERSION(_version_)
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
T const & get(Event const &event, InputTag const &tag)
bool isMergeable_() const override
void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const override
T const * product() const
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()