1 #ifndef DataFormats_Common_IndirectHolder_h 2 #define DataFormats_Common_IndirectHolder_h 39 T const*
getPtr()
const override;
41 size_t key()
const override;
46 std::unique_ptr<RefHolderBase>
holder()
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() );
BaseHolder< T > * clone() const override
virtual EDProductGetter const * productGetter() const =0
virtual ProductID id() const =0
size_t key() const override
std::unique_ptr< RefHolderBase > holder() const override
#define CMS_CLASS_VERSION(_version_)
virtual std::unique_ptr< RefVectorHolderBase > makeVectorHolder() const =0
virtual bool isEqualTo(RefHolderBase const &rhs) const =0
~IndirectHolder() override
ProductID id() const override
IndirectHolder(std::unique_ptr< U > p)
bool isEqualTo(BaseHolder< T > const &rhs) const override
EDProductGetter const * productGetter() const override
T const * getPtr() const override
IndirectHolder & operator=(IndirectHolder const &rhs)
virtual size_t key() const =0
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder() const override
bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const override
def template(fileName, svg, replaceme="REPLACEME")
void swap(IndirectHolder &other)
bool isAvailable() const override
virtual bool isAvailable() const =0
virtual bool fillRefIfMyTypeMatches(RefHolderBase &ref, std::string &msg) const =0
virtual RefHolderBase * clone() const =0
virtual bool isTransient() const =0
bool isTransient() const override