2 #ifndef DataFormats_Common_Holder_h 3 #define DataFormats_Common_Holder_h 15 template <
class T,
class REF>
16 class Holder :
public BaseHolder<T> {
20 explicit Holder(REF
const& iRef);
24 BaseHolder<T>*
clone()
const override;
26 T const*
getPtr()
const override;
27 ProductID
id()
const override;
28 size_t key()
const override;
29 bool isEqualTo(BaseHolder<T>
const& rhs)
const override;
32 std::unique_ptr<RefHolderBase>
holder()
const override {
58 template <
class T,
class REF>
61 template <
class T,
class REF>
64 template <
class T,
class REF>
71 template <
class T,
class REF>
76 template <
class T,
class REF>
79 template <
class T,
class REF>
84 template <
class T,
class REF>
86 return ref_.operator->();
89 template <
class T,
class REF>
94 template <
class T,
class REF>
97 return h && (
getRef() ==
h->getRef());
102 template <
class T,
class REF>
107 template <
class T,
class REF>
109 return ref_.productGetter();
119 namespace reftobase {
121 template <
typename T,
typename REF>
124 return helper::makeVectorHolder();
132 namespace reftobase {
134 template <
class T,
class REF>
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder() const override
Holder & operator=(Holder const &rhs)
T const * getPtr() const override
std::unique_ptr< RefHolderBase > holder() const override
#define CMS_CLASS_VERSION(_version_)
void swap(Association< C > &lhs, Association< C > &rhs)
bool isTransient() const override
BaseHolder< T > * clone() const override
bool isAvailable() const override
key
prepare the HTCondor submission files and eventually submit them
def template(fileName, svg, replaceme="REPLACEME")
TracksUtilities< TrackerTraits > helper
EDProductGetter const * productGetter() const override
REF const & getRef() const
ProductID id() const override
bool isEqualTo(BaseHolder< T > const &rhs) const override
size_t key() const override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)