1 #ifndef DataFormats_Common_RefVectorHolderBase_h 2 #define DataFormats_Common_RefVectorHolderBase_h 19 virtual bool empty()
const = 0;
21 virtual void clear() = 0;
43 virtual std::shared_ptr<RefHolderBase>
deref()
const = 0;
47 struct const_iterator :
public std::iterator<std::random_access_iterator_tag, void*> {
64 "Trying to increment an inavlid RefToBaseVector<T>::const_iterator\n");
71 "Trying to postincrement an inavlid RefToBaseVector<T>::const_iterator\n");
79 "Trying to decrement an inavlid RefToBaseVector<T>::const_iterator\n");
86 "Trying to postdecrement an inavlid RefToBaseVector<T>::const_iterator\n");
96 "Trying to compute difference with an inavlid RefToBaseVector<T>::const_iterator\n");
102 "Trying to compute sum with an inavlid RefToBaseVector<T>::const_iterator\n");
110 "Trying to compute difference with an inavlid RefToBaseVector<T>::const_iterator\n");
120 "Trying to compute < operator with an inavlid RefToBaseVector<T>::const_iterator\n");
140 "Trying to dereference an inavlid RefToBaseVector<T>::const_iterator\n");
146 "Trying to decrement an inavlid RefToBaseVector<T>::const_iterator\n");
153 "Trying to increment an inavlid RefToBaseVector<T>::const_iterator\n");
166 template <
typename T>
175 virtual std::shared_ptr<reftobase::RefHolderBase>
refBase(
size_t idx)
const = 0;
178 template <
typename T>
180 std::shared_ptr<reftobase::RefHolderBase> rb =
refBase(
idx);
const_iterator(const_iterator_imp *it)
void swap(RefVectorHolderBase &)
bool operator<(const_iterator const &o) const
ptrdiff_t difference_type
virtual const_iterator_imp * clone() const =0
virtual RefVectorHolderBase * clone() const =0
const_iterator & operator++()
const_iterator operator--(int)
const_iterator operator++(int)
virtual bool empty() const =0
virtual RefVectorHolderBase * cloneEmpty() const =0
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
virtual size_t keyForIndex(size_t idx) const =0
virtual size_type size() const =0
const_iterator operator+(difference_type n) const
std::shared_ptr< RefHolderBase > value_type
virtual std::shared_ptr< RefHolderBase > deref() const =0
virtual void assign(const_iterator_imp const *)=0
virtual EDProductGetter const * productGetter() const =0
virtual ~const_iterator_imp()
virtual void decrease()=0
const_iterator & operator-=(difference_type d)
virtual difference_type difference(const_iterator_imp const *) const =0
virtual const_iterator begin() const =0
const_iterator & operator--()
RefToBase< T > getRef(size_t idx) const
virtual bool less_than(const_iterator_imp const *) const =0
bool operator!=(const const_iterator &ci) const
virtual void reserve(size_type n)=0
const_iterator & operator=(const_iterator const &it)
const_iterator(const_iterator const &it)
virtual ~RefVectorHolderBase()
value_type operator*() const
const_iterator operator-(difference_type n) const
virtual const_iterator end() const =0
virtual ProductID id() const =0
virtual void push_back(RefHolderBase const *r)=0
bool operator==(const const_iterator &ci) const
std::ptrdiff_t difference_type
virtual bool isAvailable() const =0
virtual void increase()=0
virtual std::shared_ptr< reftobase::RefHolderBase > refBase(size_t idx) const =0
const_iterator & operator+=(difference_type d)
virtual bool equal_to(const_iterator_imp const *) const =0
difference_type operator-(const_iterator const &o) const
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)