Go to the documentation of this file. 1 #ifndef DataFormats_Common_IndirectHolder_h
2 #define DataFormats_Common_IndirectHolder_h
41 T const*
getPtr()
const override;
43 size_t key()
const override;
47 std::unique_ptr<RefHolderBase>
holder()
const override;
100 return helper_->template getPtr<T>();
103 template <
typename T>
105 return helper_->
id();
108 template <
typename T>
110 return helper_->key();
113 template <
typename T>
115 return helper_->productGetter();
118 template <
typename T>
121 return h && helper_->isEqualTo(*
h->helper_);
124 template <
typename T>
126 return helper_->fillRefIfMyTypeMatches(fillme,
msg);
129 template <
typename T>
131 return std::unique_ptr<RefHolderBase>(helper_->clone());
135 template <
typename T>
147 namespace reftobase {
148 template <
typename T>
150 std::unique_ptr<RefVectorHolderBase>
p = helper_->makeVectorHolder();
151 std::shared_ptr<RefVectorHolderBase> sp(
p.release());
void swap(IndirectHolder &other)
EDProductGetter const * productGetter() const override
T const * getPtr() const override
bool isTransient() const override
virtual bool isAvailable() const =0
bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const override
bool isAvailable() const override
~IndirectHolder() override
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder() const override
bool isEqualTo(BaseHolder< T > const &rhs) const override
#define CMS_CLASS_VERSION(_version_)
IndirectHolder & operator=(IndirectHolder const &rhs)
def template(fileName, svg, replaceme="REPLACEME")
IndirectHolder(std::unique_ptr< U > p)
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
ProductID id() const override
virtual bool isTransient() const =0
std::unique_ptr< RefHolderBase > holder() const override
size_t key() const override
BaseHolder< T > * clone() const override