Go to the documentation of this file. 1 #ifndef DataFormats_Common_RefVectorBase_h
2 #define DataFormats_Common_RefVectorBase_h
30 template <
typename KEY>
58 void const* prodPtr =
nullptr,
136 template <
typename KEY>
142 template <
typename KEY>
144 return !(lhs == rhs);
148 template <
typename KEY>
void swap(RefCore &) noexcept
RefCore const & refCore() const
Accessor for product ID and product getter.
void swap(Association< C > &lhs, Association< C > &rhs)
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors
void clear()
clear the vector
bool empty() const
Is vector empty?
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
RefVectorBase(RefVectorBase &&rhs) noexcept
RefVectorMemberPointersHolder()
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
std::vector< KEY > keys_type
RefVectorBase()
Default constructor needed for reading from persistent store. Not for direct use.
#define CMS_CLASS_VERSION(_version_)
~RefVectorBase() noexcept
Destructor.
keys_type::size_type size_type
RefVectorBase(ProductID const &productID, void const *prodPtr=nullptr, EDProductGetter const *prodGetter=nullptr)
void const * cachedMemberPointer(size_type idx) const
void pushBack(RefCore const &product, KEY const &key)
void reserve(size_type n)
Reserve space for vector.
RefVectorMemberPointersHolder memberPointersHolder_
void const * productPtr() const
void pushBackRefItem(RefCore const &productToBeInserted)
RefVectorBase(RefVectorBase const &rhs)
size_type capacity() const
Capacity of vector.
RefVectorBase & operator=(RefVectorBase const &rhs)
std::vector< void const * > const & memberPointers() const
size_type size() const
Size of vector.
RefVectorBase & operator=(RefVectorBase &&rhs) noexcept
std::vector< void const * > & memberPointers()
keys_type const & keys() const
Accessor for vector of keys and pointers.
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
std::vector< void const * > memberPointers_
std::vector< void const * > const & memberPointers() const