1 #ifndef DataFormats_Common_RefVector_h 2 #define DataFormats_Common_RefVector_h 45 typedef std::vector<key_type>
KeyVec;
164 template <
typename C,
typename T,
typename F>
171 template <
typename C,
typename T,
typename F>
176 template <
typename C,
typename T,
typename F>
178 std::vector<void const*>& pointers,
180 pointers.reserve(this->
size());
181 helpers.reserve(this->
size());
186 pointers.push_back(address);
191 template <
typename C,
typename T,
typename F>
194 std::vector<void const*>& pointers,
199 template <
typename C,
typename T,
typename F>
204 template <
typename C,
typename T,
typename F>
206 return lhs.refVector() == rhs.refVector();
209 template <
typename C,
typename T,
typename F>
211 return !(lhs == rhs);
214 template <
typename C,
typename T,
typename F>
222 template <
typename C,
typename T,
typename F>
227 template <
typename C,
typename T,
typename F>
232 template <
typename C,
typename T,
typename F>
236 }
else if (
empty()) {
248 if (!(*
this)[
i].isAvailable()) {
255 template <
typename C,
typename T,
typename F>
256 std::ostream& operator<<(std::ostream& os, RefVector<C, T, F>
const& r) {
268 template <
typename C,
typename T,
typename F>
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
RefCore const & refCore() const
bool empty() const
Is the RefVector empty.
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
bool isTransient() const
Checks if product collection is tansient (i.e. non persistable)
value_type const const_reference
value_type::key_type key_type
bool hasProductCache() const
Checks if product is in memory.
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors
RefVector(RefVector &&rh) noexcept
const_reference reference
void clear()
clear the vector
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
#define CMS_CLASS_VERSION(_version_)
bool empty() const
Is vector empty?
void const * productPtr() const
key_type key() const
Accessor for product key.
KeyVec::size_type size_type
EDProductGetter const * productGetter() const
Accessor for product getter.
value_type const operator[](size_type idx) const
Retrieve an element of the RefVector.
bool isNull() const
Checks for null.
bool operator!() const
Checks for null.
ProductID id() const
Accessor for product ID.
void swap(RefVector< C, T, F > &other) noexcept
Swap two vectors.
contents_type const & refVector() const
Accessor for all data.
void setProductPtr(void const *prodPtr) const
RefVector(ProductID const &iId)
std::vector< key_type > KeyVec
refhelper::RefVectorTrait< C, T, F >::iterator_type iterator
keys_type::size_type size_type
def template(fileName, svg, replaceme="REPLACEME")
RefVector(RefVector const &rh)
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void reserve(size_type n)
Reserve space for RefVector.
size_type capacity() const
Capacity of vector.
RefVectorBase< key_type > contents_type
RefVector & operator=(RefVector &&rhs) noexcept
void pushBack(RefCore const &product, KEY const &key)
size_type size() const
Size of the RefVector.
void clear()
Clear the vector.
const_iterator end() const
Termination of iteration.
RefVector< C, T, F >::const_iterator iter
void const * cachedMemberPointer(size_type idx) const
size_type capacity() const
Capacity of the RefVector.
static element_type const * address(iter const &i)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
FindUsingAdvance< C, T > value
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
void reserve(size_type n)
Reserve space for vector.
refhelper::RefVectorTrait< C, T, F >::ref_type value_type
RefVector & operator=(RefVector const &rhs)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
const_iterator begin() const
Initialize an iterator over the RefVector.
void fillView(ProductID const &id, std::vector< void const *> &pointers, FillViewHelperVector &helpers) const
EDProductGetter const * productGetter() const
RefCore const & refCore() const
Accessor for product ID and product getter.
edm::RefVector< Container > RefVector
keys_type const & keys() const
Accessor for vector of keys and pointers.
size_type size() const
Size of vector.
bool isNonnull() const
Checks for non-null.
iterator erase(iterator const &pos)
Erase an element from the vector.
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector