1 #ifndef DataFormats_Common_PtrVector_h 2 #define DataFormats_Common_PtrVector_h 28 #include <type_traits> 120 std::vector<void const*>::const_iterator
iter_;
124 template <
typename T>
138 template <
typename U>
145 Ptr<T> operator[](
unsigned long const iIndex)
const {
return this->makePtr<Ptr<T> >(iIndex); }
157 template <
typename U>
161 "Ptr used in push_back can not be converted to type used by PtrVector.");
184 Ptr<T> fromItr(std::vector<void const*>::const_iterator
const& iItr)
const {
return this->makePtr<Ptr<T> >(iItr); }
187 template <
typename T>
189 pointers.reserve(this->
size());
192 T const* address = ref.
isNull() ? nullptr : &*ref;
193 pointers.push_back(address);
198 template <
typename T>
201 std::vector<void const*>& pointers,
206 template <
typename T>
212 template <
typename T>
void push_back_base(RefCore const &core, key_type iKey, void const *iData)
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const *> &pointers, FillViewHelperVector &helpers)
std::vector< void const * >::const_iterator iter_
PtrHolder< T > operator->() const
void fillView(std::vector< void const *> &pointers, FillViewHelperVector &helpers) const
PtrVectorItr< T > const_iterator
bool operator<(iterator const &rhs) const
void swap(PtrVector &other)
Ptr< T > const * operator->() const
ProductID id() const
Accessor for product ID.
bool operator>(iterator const &rhs) const
bool operator==(iterator const &rhs) const
Ptr< T > const & operator*() const
void push_back(Ptr< T > const &iPtr)
void swap(PtrVectorBase &other)
swap
bool operator!=(iterator const &rhs) const
PtrVector< T > const * base_
iterator & operator-=(difference_type n)
#define CMS_CLASS_VERSION(_version_)
const_iterator end() const
iterator operator+(difference_type n) const
void swap(Association< C > &lhs, Association< C > &rhs)
TEMPL(T2) struct Divides void
std::ptrdiff_t difference_type
std::type_info const & typeInfo() const override
bool isNull() const
Checks for null.
Container::value_type value_type
Ptr< T > fromItr(std::vector< void const *>::const_iterator const &iItr) const
iterator operator-(difference_type n) const
Ptr< T > const operator*() const
Ptr< T > operator[](unsigned long const iIndex) const
std::random_access_iterator_tag iterator_category
const_iterator begin() const
PtrVector(ProductID const &iId)
std::vector< void const * >::const_iterator void_end() const
iterator & operator+=(difference_type n)
bool operator>=(iterator const &rhs) const
void push_back(Ptr< U > const &iPtr)
Ptr< T > const operator[](difference_type n) const
PtrVectorItr(std::vector< void const *>::const_iterator const &iItr, PtrVector< T > const *iBase)
bool hasProductCache() const
PtrVector & operator=(PtrVector const &rhs)
PtrHolder(Ptr< T > const &iPtr)
bool operator<=(iterator const &rhs) const
RefCore const & refCore() const
difference_type operator-(iterator const &rhs) const
std::vector< void const * >::const_iterator void_begin() const
PtrVector(PtrVector< T > const &iOther)
PtrVector(PtrVector< U > const &iOther)
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector