1 #ifndef DataFormats_Common_IndirectHolder_h
2 #define DataFormats_Common_IndirectHolder_h
38 virtual T const*
getPtr()
const;
40 virtual size_t key()
const;
45 virtual std::auto_ptr<RefHolderBase>
holder()
const;
50 virtual void const *
product()
const;
104 template <
typename T>
111 template <
typename T>
115 return helper_->
template getPtr<T>();
118 template <
typename T>
122 return helper_->
id();
125 template <
typename T>
129 return helper_->key();
132 template <
typename T>
135 return helper_->productGetter();
138 template <
typename T>
141 return helper_->hasProductCache();
144 template <
typename T>
147 return helper_->product();
150 template <
typename T>
158 template <
typename T>
163 return helper_->fillRefIfMyTypeMatches(fillme, msg);
166 template <
typename T>
168 return std::auto_ptr<RefHolderBase>( helper_->clone() );
172 template <
typename T>
186 namespace reftobase {
187 template <
typename T>
189 std::auto_ptr<RefVectorHolderBase>
p = helper_->makeVectorHolder();
190 std::shared_ptr<RefVectorHolderBase> sp( p.release() );
194 template <
typename T>
virtual bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const
virtual size_t key() const
virtual BaseHolder< T > * clone() const
virtual std::auto_ptr< BaseVectorHolder< T > > makeVectorHolder() const
virtual bool isAvailable() const =0
virtual bool isAvailable() const
virtual EDProductGetter const * productGetter() const
#define CMS_CLASS_VERSION(_version_)
IndirectHolder & operator=(IndirectHolder const &rhs)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual T const * getPtr() const
virtual std::auto_ptr< RefVectorHolderBase > makeVectorBaseHolder() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual void const * product() const
virtual ~IndirectHolder()
void swap(IndirectHolder &other)
virtual bool hasProductCache() const
virtual ProductID id() const
virtual bool isEqualTo(BaseHolder< T > const &rhs) const
virtual std::auto_ptr< RefHolderBase > holder() const
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)