1 #ifndef DataFormats_Common_RefVectorBase_h
2 #define DataFormats_Common_RefVectorBase_h
29 template <
typename KEY>
119 keys_.swap(other.keys_);
137 template<
typename KEY>
144 template<
typename KEY>
147 return !(lhs == rhs);
151 template<
typename KEY>
void const * cachedMemberPointer(size_type idx) const
RefVectorBase & operator=(RefVectorBase const &rhs)
RefVectorBase(RefVectorBase const &rhs)
void swap(RefCore &) noexcept
bool empty() const
Is vector empty?
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
#define CMS_CLASS_VERSION(_version_)
void swap(Association< C > &lhs, Association< C > &rhs)
std::vector< void const * > const & memberPointers() const
void pushBack(RefCore const &product, KEY const &key)
RefVectorBase()
Default constructor needed for reading from persistent store. Not for direct use. ...
RefVectorMemberPointersHolder memberPointersHolder_
std::vector< void const * > & memberPointers()
size_type capacity() const
Capacity of vector.
RefVectorBase & operator=(RefVectorBase &&rhs) noexcept
std::vector< void const * > const & memberPointers() const
RefCore const & refCore() const
Accessor for product ID and product getter.
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
void const * productPtr() const
void clear()
clear the vector
keys_type const & keys() const
Accessor for vector of keys and pointers.
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
RefVectorMemberPointersHolder()
std::vector< void const * > memberPointers_
RefVectorBase(RefVectorBase &&rhs) noexcept
RefVectorBase(ProductID const &productID, void const *prodPtr=0, EDProductGetter const *prodGetter=0)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
~RefVectorBase() noexcept
Destructor.
keys_type::size_type size_type
void pushBackRefItem(RefCore const &productToBeInserted)
volatile std::atomic< bool > shutdown_flag false
size_type size() const
Size of vector.
std::vector< KEY > keys_type
void reserve(size_type n)
Reserve space for vector.
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors