1 #ifndef DataFormats_Common_IndirectHolder_h 2 #define DataFormats_Common_IndirectHolder_h 39 virtual T const*
getPtr()
const override;
41 virtual size_t key()
const override;
46 virtual std::unique_ptr<RefHolderBase>
holder()
const override;
47 virtual std::unique_ptr<BaseVectorHolder<T> >
makeVectorHolder()
const override;
104 template <
typename T>
111 template <
typename T>
115 return helper_->
template getPtr<T>();
118 template <
typename T>
125 template <
typename T>
132 template <
typename T>
138 template <
typename T>
146 template <
typename T>
154 template <
typename T>
156 return std::unique_ptr<RefHolderBase>(
helper_->
clone() );
160 template <
typename T>
174 namespace reftobase {
175 template <
typename T>
178 std::shared_ptr<RefVectorHolderBase>
sp( p.release() );
virtual BaseHolder< T > * clone() const override
virtual EDProductGetter const * productGetter() const =0
virtual ProductID id() const =0
virtual size_t key() const override
virtual std::unique_ptr< RefHolderBase > holder() const override
virtual bool isAvailable() const override
#define CMS_CLASS_VERSION(_version_)
virtual std::unique_ptr< RefVectorHolderBase > makeVectorHolder() const =0
virtual bool isEqualTo(RefHolderBase const &rhs) const =0
virtual ProductID id() const override
IndirectHolder(std::unique_ptr< U > p)
virtual bool isEqualTo(BaseHolder< T > const &rhs) const override
virtual EDProductGetter const * productGetter() const override
virtual T const * getPtr() const override
IndirectHolder & operator=(IndirectHolder const &rhs)
virtual size_t key() const =0
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder() const override
virtual bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const override
def template(fileName, svg, replaceme="REPLACEME")
virtual ~IndirectHolder()
void swap(IndirectHolder &other)
virtual bool isAvailable() const =0
virtual bool isTransient() const override
virtual bool fillRefIfMyTypeMatches(RefHolderBase &ref, std::string &msg) const =0
virtual RefHolderBase * clone() const =0
virtual bool isTransient() const =0