1 #ifndef DataFormats_Common_IndirectVectorHolder_h
2 #define DataFormats_Common_IndirectVectorHolder_h
13 class IndirectVectorHolder :
public BaseVectorHolder<T> {
32 virtual bool empty()
const override;
34 virtual void clear()
override;
36 virtual std::auto_ptr<reftobase::RefVectorHolderBase>
vectorHolder()
const override {
37 return std::auto_ptr<reftobase::RefVectorHolderBase>(
helper_->
clone() );
41 const holder_type *
h =
dynamic_cast<const holder_type *
>(
r );
44 "In IndirectHolder<T> trying to push_back wrong reference type");
70 bool equal_to(
const const_iterator_imp *
o )
const {
return i == dc( o ); }
71 bool less_than(
const const_iterator_imp *
o )
const {
return i < dc( o ); }
72 void assign(
const const_iterator_imp *
o ) {
i = dc( o ); }
76 difference_type
difference(
const const_iterator_imp *
o )
const {
return i - dc( o ); }
81 "In IndirectVectorHolder trying to dereference a null pointer");
86 "In IndirectVectorHolder trying to cast iterator to wrong type ");
101 template <
typename T>
104 template <
typename T>
108 template <
typename T>
112 template <
typename T>
116 template <
typename T>
121 template <
typename T>
127 template <
typename T>
135 template <
typename T>
141 template <
typename T>
147 template <
typename T>
150 return helper_->
id();
153 template <
typename T>
155 return helper_->productGetter();
158 template <
typename T>
160 return helper_->empty();
163 template <
typename T>
165 return helper_->size();
168 template <
typename T>
170 return helper_->clear();
173 template <
typename T>
179 template <
typename T>
~const_iterator_imp_specific()
virtual size_type size() const override
base_type::element_type element_type
void increase(difference_type d)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
BaseVectorHolder< T > base_type
virtual RefVectorHolderBase * clone() const =0
const_iterator end() const override
virtual ~IndirectVectorHolder()
base_type::const_iterator const_iterator
difference_type difference(const const_iterator_imp *o) const
void assign(const const_iterator_imp *o)
const_iterator_imp_specific * clone() const
RefVectorHolderBase * helper_
#define CMS_CLASS_VERSION(_version_)
base_ref_type deref() const
virtual base_ref_type const at(size_type idx) const override
base_type::size_type size_type
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
const_iterator begin() const override
IndirectVectorHolder & operator=(IndirectVectorHolder const &rhs)
virtual void clear() override
virtual EDProductGetter const * productGetter() const override
base_type::base_ref_type base_ref_type
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
base_type::const_iterator_imp const_iterator_imp
virtual std::auto_ptr< reftobase::RefVectorHolderBase > vectorHolder() const override
const_iterator_imp_specific(const typename RefVectorHolderBase::const_iterator &it)
ptrdiff_t difference_type
bool less_than(const const_iterator_imp *o) const
const RefVectorHolderBase::const_iterator & dc(const const_iterator_imp *o) const
virtual void push_back(const BaseHolder< T > *r) override
void swap(IndirectVectorHolder &other)
const_iterator_imp_specific()
virtual const_iterator begin() const =0
virtual bool isAvailable() const override
virtual ProductID id() const override
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
virtual BaseVectorHolder< T > * clone() const override
virtual const_iterator end() const =0
virtual bool empty() const override
virtual void push_back(RefHolderBase const *r)=0
virtual bool isAvailable() const =0
RefVectorHolderBase::const_iterator i
virtual BaseVectorHolder< T > * cloneEmpty() const override
void swap(BaseVectorHolder &)
bool equal_to(const const_iterator_imp *o) const
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
void decrease(difference_type d)