1 #ifndef DataFormats_Common_RefVector_h
2 #define DataFormats_Common_RefVector_h
45 typedef std::vector<key_type>
KeyVec;
161 refVector_.
swap(other.refVector_);
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);
187 helpers.emplace_back(
i->id(),
i->key());
191 template <
typename C,
typename T,
typename F>
194 std::vector<void const*>& pointers,
196 obj.fillView(
id, pointers, helpers);
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
void const * cachedMemberPointer(size_type idx) const
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
bool isNonnull() const
Checks for non-null.
void setProductPtr(void const *prodPtr) const
value_type const const_reference
value_type::key_type key_type
size_type capacity() const
Capacity of the RefVector.
bool empty() const
Is vector empty?
RefCore const & refCore() const
RefVector(RefVector &&rh) noexcept
const_reference reference
key_type key() const
Accessor for product key.
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
#define CMS_CLASS_VERSION(_version_)
const_iterator end() const
Termination of iteration.
bool empty() const
Is the RefVector empty.
const_iterator begin() const
Initialize an iterator over the RefVector.
void pushBack(RefCore const &product, KEY const &key)
KeyVec::size_type size_type
bool isNull() const
Checks for null.
void fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const
size_type capacity() const
Capacity of vector.
void swap(RefVector< C, T, F > &other) noexcept
Swap two vectors.
ProductID id() const
Accessor for product ID.
RefVector(ProductID const &iId)
std::vector< key_type > KeyVec
RefCore const & refCore() const
Accessor for product ID and product getter.
bool isTransient() const
Checks if product collection is tansient (i.e. non persistable)
void const * productPtr() const
tuple key
prepare the HTCondor submission files and eventually submit them
refhelper::RefVectorTrait< C, T, F >::iterator_type iterator
void clear()
clear the vector
keys_type const & keys() const
Accessor for vector of keys and pointers.
RefVector(RefVector const &rh)
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void reserve(size_type n)
Reserve space for RefVector.
EDProductGetter const * productGetter() const
Accessor for product getter.
RefVectorBase< key_type > contents_type
RefVector & operator=(RefVector &&rhs) noexcept
void clear()
Clear the vector.
bool hasProductCache() const
Checks if product is in memory.
RefVector< C, T, F >::const_iterator iter
EDProductGetter const * productGetter() const
value_type const operator[](size_type idx) const
Retrieve an element of the RefVector.
value_type const at(size_type idx) const
Retrieve an element 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.
keys_type::size_type size_type
size_type size() const
Size of the RefVector.
refhelper::RefVectorTrait< C, T, F >::ref_type value_type
RefVector & operator=(RefVector const &rhs)
contents_type const & refVector() const
Accessor for all data.
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
size_type size() const
Size of vector.
bool operator!() const
Checks for null.
edm::RefVector< Container > RefVector
void reserve(size_type n)
Reserve space for vector.
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors
iterator erase(iterator const &pos)
Erase an element from the vector.
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector