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>
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void swap(RefCore &) noexcept
std::vector< void const * > const & memberPointers() const
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors
void clear()
clear the vector
std::vector< KEY > keys_type
#define CMS_CLASS_VERSION(_version_)
bool empty() const
Is vector empty?
void const * productPtr() const
void swap(Association< C > &lhs, Association< C > &rhs)
RefVectorBase(RefVectorBase &&rhs) noexcept
~RefVectorBase() noexcept
Destructor.
std::vector< void const * > & memberPointers()
keys_type::size_type size_type
key
prepare the HTCondor submission files and eventually submit them
std::vector< void const * > const & memberPointers() const
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
RefVectorBase()
Default constructor needed for reading from persistent store. Not for direct use. ...
size_type capacity() const
Capacity of vector.
RefVectorMemberPointersHolder memberPointersHolder_
void pushBack(RefCore const &product, KEY const &key)
RefVectorMemberPointersHolder()
std::vector< void const * > memberPointers_
RefVectorBase & operator=(RefVectorBase const &rhs)
RefVectorBase(RefVectorBase const &rhs)
RefVectorBase(ProductID const &productID, void const *prodPtr=nullptr, EDProductGetter const *prodGetter=nullptr)
void const * cachedMemberPointer(size_type idx) const
RefVectorBase & operator=(RefVectorBase &&rhs) noexcept
void pushBackRefItem(RefCore const &productToBeInserted)
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
void reserve(size_type n)
Reserve space for vector.
RefCore const & refCore() const
Accessor for product ID and product getter.
keys_type const & keys() const
Accessor for vector of keys and pointers.
size_type size() const
Size of vector.