|
|
Go to the documentation of this file. 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"
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndices, std::vector< void const * > &oPtr) const override
std::type_info const & wrappedTypeInfo_() const override
std::type_info const & memberTypeInfo_() const override
bool mergeProduct_(WrapperBase const *newProduct) override
std::shared_ptr< soa::TableExaminerBase > tableExaminer_() const override
static std::type_info const & productTypeInfo()
std::type_info const & dynamicTypeInfo_() const override
void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const override
T const * product() const
void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const override
#define CMS_CLASS_VERSION(_version_)
bool isProductEqual_(WrapperBase const *newProduct) const override
bool isMergeable_() const override
T const & get(Event const &event, InputTag const &tag) noexcept(false)
Wrapper< T > & operator=(Wrapper< T > const &)=delete
static std::type_info const & typeInfo()
S make(const edm::ParameterSet &cfg)
bool hasSwap_() const override
void swapProduct_(WrapperBase *newProduct) override
bool isPresent_() const override
bool hasIsProductEqual_() const override
T const * operator->() const
std::type_info const & valueTypeInfo_() const override
static std::shared_ptr< edm::soa::TableExaminerBase > make(void const *)