1 #ifndef DataFormats_Common_IndirectVectorHolder_h
2 #define DataFormats_Common_IndirectVectorHolder_h
13 class IndirectVectorHolder :
public BaseVectorHolder<T> {
32 virtual bool empty()
const;
36 virtual std::auto_ptr<reftobase::RefVectorHolderBase>
vectorHolder()
const {
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");
73 bool equal_to(
const const_iterator_imp *
o )
const {
return i == dc( o ); }
74 bool less_than(
const const_iterator_imp *
o )
const {
return i < dc( o ); }
75 void assign(
const const_iterator_imp *
o ) {
i = dc( o ); }
79 difference_type
difference(
const const_iterator_imp *
o )
const {
return i - dc( o ); }
84 "In IndirectVectorHolder trying to dereference a null pointer");
89 "In IndirectVectorHolder trying to cast iterator to wrong type ");
104 template <
typename T>
107 template <
typename T>
111 template <
typename T>
115 template <
typename T>
119 template <
typename T>
124 template <
typename T>
130 template <
typename T>
138 template <
typename T>
144 template <
typename T>
150 template <
typename T>
153 return helper_->
id();
156 template <
typename T>
158 return helper_->productGetter();
161 template <
typename T>
163 return helper_->empty();
166 template <
typename T>
168 return helper_->size();
171 template <
typename T>
173 return helper_->clear();
176 template <
typename T>
182 template <
typename T>
~const_iterator_imp_specific()
virtual size_type size() const
virtual std::auto_ptr< reftobase::RefVectorHolderBase > vectorHolder() const
base_type::element_type element_type
void increase(difference_type d)
virtual bool empty() const
BaseVectorHolder< T > base_type
const_iterator begin() const
virtual RefVectorHolderBase * clone() const =0
virtual ~IndirectVectorHolder()
virtual void push_back(const BaseHolder< T > *r)
base_type::const_iterator const_iterator
difference_type difference(const const_iterator_imp *o) const
void assign(const const_iterator_imp *o)
virtual BaseVectorHolder< T > * clone() const
const_iterator_imp_specific * clone() const
RefVectorHolderBase * helper_
#define CMS_CLASS_VERSION(_version_)
base_ref_type deref() const
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="")
virtual void const * product() const =0
IndirectVectorHolder & operator=(IndirectVectorHolder const &rhs)
virtual ProductID id() const
base_type::base_ref_type base_ref_type
virtual BaseVectorHolder< T > * cloneEmpty() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
base_type::const_iterator_imp const_iterator_imp
const_iterator_imp_specific(const typename RefVectorHolderBase::const_iterator &it)
virtual const void * product() const
ptrdiff_t difference_type
const_iterator end() const
bool less_than(const const_iterator_imp *o) const
const RefVectorHolderBase::const_iterator & dc(const const_iterator_imp *o) const
void swap(IndirectVectorHolder &other)
const_iterator_imp_specific()
virtual const_iterator begin() const =0
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual bool isAvailable() const
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
virtual base_ref_type const at(size_type idx) const
virtual const_iterator end() const =0
virtual void push_back(RefHolderBase const *r)=0
virtual bool isAvailable() const =0
RefVectorHolderBase::const_iterator i
void swap(BaseVectorHolder &)
bool equal_to(const const_iterator_imp *o) const
virtual EDProductGetter const * productGetter() const
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
void decrease(difference_type d)