|
|
Go to the documentation of this file. 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>
268 template <
typename C,
typename T,
typename F>
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
void reserve(size_type n)
Reserve space for RefVector.
void clear()
Clear the vector.
void setProductPtr(void const *prodPtr) const
KeyVec::size_type size_type
ProductID id() const
Accessor for product ID.
refhelper::RefVectorTrait< C, T, F >::ref_type value_type
RefCore const & refCore() const
Accessor for product ID and product getter.
refhelper::RefVectorTrait< C, T, F >::iterator_type iterator
iterator erase(iterator const &pos)
Erase an element from the vector.
const_iterator begin() const
Initialize an iterator over the RefVector.
RefVector & operator=(RefVector &&rhs) noexcept
void fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const
bool isNull() const
Checks for null.
contents_type const & refVector() const
Accessor for all data.
void swap(RefVectorBase< KEY > &other) noexcept
swap two vectors
void clear()
clear the vector
edm::RefVector< Container > RefVector
bool empty() const
Is vector empty?
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
EDProductGetter const * productGetter() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
const_iterator end() const
Termination of iteration.
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
bool empty() const
Is the RefVector empty.
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
#define CMS_CLASS_VERSION(_version_)
const value_type operator[](size_type idx) const
Retrieve an element of the RefVector.
size_type capacity() const
Capacity of the RefVector.
keys_type::size_type size_type
bool isNonnull() const
Checks for non-null.
EDProductGetter const * productGetter() const
Accessor for product getter.
RefVector(RefVector &&rh) noexcept
static element_type const * address(iter const &i)
void const * cachedMemberPointer(size_type idx) const
RefVector< C, T, F >::const_iterator iter
RefVector & operator=(RefVector const &rhs)
void pushBack(RefCore const &product, KEY const &key)
def template(fileName, svg, replaceme="REPLACEME")
void reserve(size_type n)
Reserve space for vector.
RefCore const & refCore() const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
const_reference reference
RefVector(RefVector const &rh)
void const * productPtr() const
bool hasProductCache() const
Checks if product is in memory.
size_type capacity() const
Capacity of vector.
bool operator!() const
Checks for null.
RefVector(ProductID const &iId)
std::vector< key_type > KeyVec
key_type key() const
Accessor for product key.
value_type::key_type key_type
size_type size() const
Size of vector.
const value_type at(size_type idx) const
Retrieve an element of the RefVector.
size_type size() const
Size of the RefVector.
FindUsingAdvance< C, T > value
keys_type const & keys() const
Accessor for vector of keys and pointers.
bool isTransient() const
Checks if product collection is tansient (i.e. non persistable)
keys_type::iterator eraseAtIndex(size_type index)
erase an element from the vector
void swap(RefVector< C, T, F > &other) noexcept
Swap two vectors.
const value_type const_reference
RefVectorBase< key_type > contents_type