Go to the documentation of this file. 1 #ifndef DataFormats_Common_BaseVectorHolder_h
2 #define DataFormats_Common_BaseVectorHolder_h
15 class BaseVectorHolder {
25 virtual bool empty()
const = 0;
30 virtual void clear() = 0;
54 struct const_iterator :
public std::iterator<std::random_access_iterator_tag, RefToBase<T> > {
56 typedef std::unique_ptr<value_type>
pointer;
165 virtual std::unique_ptr<RefVectorHolderBase>
vectorHolder()
const = 0;
176 template <
typename T>
virtual BaseVectorHolder * clone() const =0
const_iterator & operator-=(difference_type d)
std::unique_ptr< value_type > pointer
virtual size_type size() const =0
virtual ~BaseVectorHolder()
virtual void increase()=0
virtual ProductID id() const =0
virtual BaseVectorHolder * cloneEmpty() const =0
void swap(BaseVectorHolder &)
value_type operator*() const
virtual bool empty() const =0
virtual bool equal_to(const_iterator_imp const *) const =0
virtual void decrease()=0
const_iterator & operator++()
#define CMS_CLASS_VERSION(_version_)
std::ptrdiff_t difference_type
const_iterator & operator+=(difference_type d)
virtual base_ref_type deref() const =0
RefToBase< T > base_ref_type
virtual bool less_than(const_iterator_imp const *) const =0
bool operator<(const_iterator const &o) const
const_iterator operator+(difference_type n) const
pointer operator->() const
const_iterator & operator--()
virtual void push_back(BaseHolder< T > const *)=0
virtual std::unique_ptr< RefVectorHolderBase > vectorHolder() const =0
bool operator!=(const_iterator const &ci) const
ptrdiff_t difference_type
const_iterator(const_iterator_imp *it)
virtual ~const_iterator_imp()
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
virtual EDProductGetter const * productGetter() const =0
virtual const_iterator end() const =0
virtual const_iterator_imp * clone() const =0
const_iterator operator-(difference_type n) const
virtual void assign(const_iterator_imp const *)=0
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
const_iterator(const_iterator const &it)
const_iterator operator++(int)
void throwInvalidReference(bool iIsInvalid, char const *iWhy) const
virtual bool isAvailable() const =0
const_iterator operator--(int)
difference_type operator-(const_iterator const &o) const
virtual difference_type difference(const_iterator_imp const *) const =0
bool operator==(const_iterator const &ci) const
virtual const_iterator begin() const =0
const_iterator & operator=(const_iterator const &it)
virtual const base_ref_type at(size_type idx) const =0