#include <RefVectorBase.h>
Public Types | |
typedef KEY | key_type |
typedef std::vector< RefItem < KEY > > | RefItems |
typedef RefItems::size_type | size_type |
Public Member Functions | |
size_type | capacity () const |
Capacity of vector. | |
void | clear () |
clear the vector | |
bool | empty () const |
Is vector empty? | |
RefItems::iterator | eraseAtIndex (size_type index) |
erase an element from the vector | |
RefItems const & | items () const |
Accessor for vector of keys and pointers. | |
RefVectorBase & | operator= (RefVectorBase const &rhs) |
Copy assignment. | |
void | pushBack (RefCore const &product, RefItem< KEY > const &item_) |
RefCore const & | refCore () const |
Accessor for product ID and product getter. | |
RefVectorBase (ProductID const &productID, void const *prodPtr=0, EDProductGetter const *prodGetter=0) | |
RefVectorBase () | |
Default constructor needed for reading from persistent store. Not for direct use. | |
void | reserve (size_type n) |
Reserve space for vector. | |
size_type | size () const |
Size of vector. | |
void | swap (RefVectorBase< KEY > &other) |
swap two vectors | |
~RefVectorBase () | |
Destructor. | |
Private Attributes | |
RefItems | items_ |
RefCore | product_ |
Definition at line 20 of file RefVectorBase.h.
typedef KEY edm::RefVectorBase< KEY >::key_type |
Definition at line 23 of file RefVectorBase.h.
typedef std::vector<RefItem<KEY> > edm::RefVectorBase< KEY >::RefItems |
Definition at line 22 of file RefVectorBase.h.
typedef RefItems::size_type edm::RefVectorBase< KEY >::size_type |
Definition at line 24 of file RefVectorBase.h.
edm::RefVectorBase< KEY >::RefVectorBase | ( | ) | [inline] |
Default constructor needed for reading from persistent store. Not for direct use.
Definition at line 26 of file RefVectorBase.h.
edm::RefVectorBase< KEY >::RefVectorBase | ( | ProductID const & | productID, |
void const * | prodPtr = 0 , |
||
EDProductGetter const * | prodGetter = 0 |
||
) | [inline, explicit] |
Definition at line 28 of file RefVectorBase.h.
edm::RefVectorBase< KEY >::~RefVectorBase | ( | ) | [inline] |
size_type edm::RefVectorBase< KEY >::capacity | ( | ) | const [inline] |
Capacity of vector.
Definition at line 53 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::capacity().
{return items_.capacity();}
void edm::RefVectorBase< KEY >::clear | ( | void | ) | [inline] |
clear the vector
Definition at line 64 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::clear().
bool edm::RefVectorBase< KEY >::empty | ( | ) | const [inline] |
Is vector empty?
Definition at line 42 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::empty().
{return items_.empty();}
RefItems::iterator edm::RefVectorBase< KEY >::eraseAtIndex | ( | size_type | index | ) | [inline] |
erase an element from the vector
Definition at line 59 of file RefVectorBase.h.
RefItems const& edm::RefVectorBase< KEY >::items | ( | ) | const [inline] |
Accessor for vector of keys and pointers.
Definition at line 39 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::at(), edm::operator==(), and edm::RefVector< TrackingRecHitCollection >::operator[]().
{return items_;}
RefVectorBase& edm::RefVectorBase< KEY >::operator= | ( | RefVectorBase< KEY > const & | rhs | ) | [inline] |
Copy assignment.
Definition at line 76 of file RefVectorBase.h.
{ RefVectorBase temp(rhs); this->swap(temp); return *this; }
void edm::RefVectorBase< KEY >::pushBack | ( | RefCore const & | product, |
RefItem< KEY > const & | item_ | ||
) | [inline] |
Definition at line 47 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::push_back().
RefCore const& edm::RefVectorBase< KEY >::refCore | ( | ) | const [inline] |
Accessor for product ID and product getter.
Definition at line 36 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::at(), edm::RefVector< TrackingRecHitCollection >::hasProductCache(), edm::RefVector< TrackingRecHitCollection >::id(), edm::RefVector< TrackingRecHitCollection >::isAvailable(), edm::RefVector< TrackingRecHitCollection >::isTransient(), edm::operator==(), edm::RefVector< TrackingRecHitCollection >::operator[](), and edm::RefVector< TrackingRecHitCollection >::productGetter().
{return product_;}
void edm::RefVectorBase< KEY >::reserve | ( | size_type | n | ) | [inline] |
Reserve space for vector.
Definition at line 56 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::reserve().
size_type edm::RefVectorBase< KEY >::size | ( | void | ) | const [inline] |
Size of vector.
Definition at line 45 of file RefVectorBase.h.
Referenced by edm::RefVector< TrackingRecHitCollection >::size().
{return items_.size();}
void edm::RefVectorBase< KEY >::swap | ( | RefVectorBase< KEY > & | other | ) | [inline] |
swap two vectors
Definition at line 70 of file RefVectorBase.h.
Referenced by edm::RefVectorBase< key_type >::operator=(), and edm::swap().
RefItems edm::RefVectorBase< KEY >::items_ [private] |
Definition at line 84 of file RefVectorBase.h.
Referenced by edm::RefVectorBase< key_type >::capacity(), edm::RefVectorBase< key_type >::clear(), edm::RefVectorBase< key_type >::empty(), edm::RefVectorBase< key_type >::eraseAtIndex(), edm::RefVectorBase< key_type >::items(), edm::RefVectorBase< key_type >::pushBack(), edm::RefVectorBase< key_type >::reserve(), edm::RefVectorBase< key_type >::size(), and edm::RefVectorBase< key_type >::swap().
RefCore edm::RefVectorBase< KEY >::product_ [private] |
Definition at line 83 of file RefVectorBase.h.
Referenced by edm::RefVectorBase< key_type >::clear(), edm::RefVectorBase< key_type >::pushBack(), edm::RefVectorBase< key_type >::refCore(), and edm::RefVectorBase< key_type >::swap().