|
|
Go to the documentation of this file. 1 #ifndef DataFormats_Common_RefVectorHolder_h
2 #define DataFormats_Common_RefVectorHolder_h
12 template <
typename REF>
15 template <
typename REFV>
24 bool empty()
const override;
26 void clear()
override;
56 std::shared_ptr<RefHolderBase> deref()
const override;
67 "In RefVectorHolder trying to cast iterator to wrong type\n");
71 typename REFV::const_iterator
i;
84 std::shared_ptr<reftobase::RefHolderBase>
refBase(
size_t idx)
const override;
92 template <
typename REFV>
95 refs_.swap(
other.refs_);
98 template <
typename REFV>
105 template <
typename REFV>
107 return refs_.empty();
110 template <
typename REFV>
115 template <
typename REFV>
117 return refs_.clear();
120 template <
typename REFV>
126 template <
typename REFV>
131 template <
typename REFV>
133 return refs_.productGetter();
136 template <
typename REFV>
141 template <
typename REFV>
146 template <
typename REFV>
151 template <
typename REFV>
153 return refs_[
idx].key();
157 template <
typename REFV>
167 namespace reftobase {
169 template <
typename REFV>
175 "RefVectorHolder: attempting to cast a RefHolderBase "
176 "to an invalid type.\nExpected: ",
180 refs_.push_back(rh->
getRef());
183 template <
typename REFV>
188 template <
typename REFV>
void swap(RefVectorHolderBase &)
ProductID id() const override
bool isAvailable() const override
REFV::const_iterator const & dc(const_iterator_imp const *o) const
EDProductGetter const * productGetter() const override
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
RefVectorHolder & operator=(RefVectorHolder const &rhs)
ptrdiff_t difference_type
void reserve(size_type n) override
bool less_than(const_iterator_imp const *o) const override
REF const & getRef() const
difference_type difference(const_iterator_imp const *o) const override
const_iterator begin() const override
#define CMS_CLASS_VERSION(_version_)
void setRefs(REFV const &refs)
~RefVectorHolder() override
size_t keyForIndex(size_t idx) const override
RefVectorHolder(ProductID const &iId)
const_iterator_imp_specific(typename REFV::const_iterator const &it)
size_type size() const override
RefVectorHolder< REFV > * clone() const override
std::shared_ptr< RefHolderBase > deref() const override
bool empty() const override
RefVectorHolder(REFV const &refs)
~const_iterator_imp_specific() override
RefVectorHolder< REFV > * cloneEmpty() const override
void swap(RefVectorHolder &other)
Container::value_type value_type
void assign(const_iterator_imp const *o) override
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
bool equal_to(const_iterator_imp const *o) const override
void decrease(difference_type d) override
const_iterator_imp_specific()
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
const_iterator end() const override
void push_back(RefHolderBase const *r) override
const_iterator_imp_specific * clone() const override
void increase(difference_type d) override
RefVectorHolderBase::const_iterator const_iterator
std::shared_ptr< reftobase::RefHolderBase > refBase(size_t idx) const override