1 #ifndef DataFormats_Common_RefVectorBase_h
2 #define DataFormats_Common_RefVectorBase_h
30 template <
typename KEY>
40 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
107 keys_.swap(other.keys_);
117 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
139 template<
typename KEY>
146 template<
typename KEY>
149 return !(lhs == rhs);
153 template<
typename KEY>
void const * cachedMemberPointer(size_type idx) const
RefVectorBase & operator=(RefVectorBase const &rhs)
Copy assignment.
RefVectorBase(RefVectorBase const &rhs)
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()
void swap(RefVectorBase< KEY > &other)
swap two vectors
size_type capacity() const
Capacity of vector.
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.
~RefVectorBase()
Destructor.
RefVectorMemberPointersHolder()
std::vector< void const * > memberPointers_
RefVectorBase(ProductID const &productID, void const *prodPtr=0, EDProductGetter const *prodGetter=0)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
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.