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;
67 "Trying to increment an inavlid RefToBaseVector<T>::const_iterator\n");
74 "Trying to postincrement an inavlid RefToBaseVector<T>::const_iterator\n");
82 "Trying to decrement an inavlid RefToBaseVector<T>::const_iterator\n");
89 "Trying to postdecrement an inavlid RefToBaseVector<T>::const_iterator\n");
99 "Trying to compute difference with an inavlid RefToBaseVector<T>::const_iterator\n");
105 "Trying to compute sum with an inavlid RefToBaseVector<T>::const_iterator\n");
113 "Trying to compute difference with an inavlid RefToBaseVector<T>::const_iterator\n");
123 "Trying to compute < operator with an inavlid RefToBaseVector<T>::const_iterator\n");
143 "Trying to dereference an inavlid RefToBaseVector<T>::const_iterator\n");
149 "Trying to decrement an inavlid RefToBaseVector<T>::const_iterator\n");
156 "Trying to increment an inavlid RefToBaseVector<T>::const_iterator\n");
169 template <
typename T>
178 virtual std::shared_ptr<reftobase::RefHolderBase>
refBase(
size_t idx)
const = 0;
181 template <
typename T>
183 std::shared_ptr<reftobase::RefHolderBase> rb =
refBase(
idx);
const_iterator(const_iterator_imp *it)
std::random_access_iterator_tag iterator_category
void swap(RefVectorHolderBase &)
bool operator<(const_iterator const &o) const
virtual const_iterator_imp * clone() const =0
virtual RefVectorHolderBase * clone() const =0
const_iterator & operator++()
std::ptrdiff_t difference_type
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
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)
ptrdiff_t difference_type
virtual difference_type difference(const_iterator_imp const *) const =0
std::shared_ptr< RefHolderBase > value_type
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
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)