#include <DataFormats/Common/interface/Vector.h>
Public Types | |
typedef base::const_iterator | const_iterator |
typedef base::const_reference | const_reference |
typedef base::iterator | iterator |
typedef base::pointer | pointer |
typedef base::reference | reference |
typedef base::size_type | size_type |
typedef base::value_type | value_type |
Public Member Functions | |
const_reference | back () const |
reference | back () |
const_iterator | begin () const |
iterator | begin () |
void | clear () |
const base & | data () const |
bool | empty () const |
const_iterator | end () const |
iterator | end () |
iterator | erase (iterator first, iterator last) |
iterator | erase (iterator pos) |
void | fillView (ProductID const &id, std::vector< void const * > &pointers, helper_vector &helpers) const |
const_reference | front () const |
reference | front () |
Vector< T > & | operator= (const Vector< T > &) |
const_reference | operator[] (size_type) const |
reference | operator[] (size_type) |
void | pop_back () |
void | push_back (const value_type &) |
void | reserve (size_t) |
size_type | size () const |
void | swap (Vector< T > &other) |
Vector (const Vector &) | |
Vector (size_type) | |
Vector () | |
~Vector () | |
Private Types | |
typedef std::vector< T > | base |
Private Member Functions | |
void | fixup () const |
void | touch () |
Private Attributes | |
base | data_ |
helpers::PostReadFixupTrait< T > ::type | fixup_ |
Definition at line 27 of file Vector.h.
typedef std::vector<T> edm::Vector< T >::base [private] |
typedef base::const_iterator edm::Vector< T >::const_iterator |
typedef base::const_reference edm::Vector< T >::const_reference |
typedef base::iterator edm::Vector< T >::iterator |
typedef base::pointer edm::Vector< T >::pointer |
typedef base::reference edm::Vector< T >::reference |
typedef base::size_type edm::Vector< T >::size_type |
typedef base::value_type edm::Vector< T >::value_type |
edm::Vector< T >::Vector | ( | ) | [inline] |
edm::Vector< T >::Vector | ( | size_type | n | ) | [inline] |
edm::Vector< T >::Vector | ( | const Vector< T > & | o | ) | [inline] |
edm::Vector< T >::~Vector | ( | ) | [inline] |
Vector< T >::const_reference edm::Vector< T >::back | ( | ) | const [inline] |
Definition at line 180 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
Vector< T >::reference edm::Vector< T >::back | ( | ) | [inline] |
Definition at line 173 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
Vector< T >::const_iterator edm::Vector< T >::begin | ( | ) | const [inline] |
Definition at line 120 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
00120 { 00121 fixup(); 00122 return const_iterator(data_.begin()); 00123 }
Vector< T >::iterator edm::Vector< T >::begin | ( | ) | [inline] |
Definition at line 106 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
void edm::Vector< T >::clear | ( | void | ) | [inline] |
Definition at line 205 of file Vector.h.
References edm::Vector< T >::data_.
00205 { 00206 data_.clear(); 00207 }
const Vector< T >::base & edm::Vector< T >::data | ( | ) | const [inline] |
Definition at line 199 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
bool edm::Vector< T >::empty | ( | ) | const [inline] |
Definition at line 137 of file Vector.h.
References edm::Vector< T >::data_.
00137 { 00138 return data_.empty(); 00139 }
Vector< T >::const_iterator edm::Vector< T >::end | ( | ) | const [inline] |
Definition at line 126 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
00126 { 00127 fixup(); 00128 return const_iterator(data_.end()); 00129 }
Vector< T >::iterator edm::Vector< T >::end | ( | ) | [inline] |
Definition at line 113 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
Vector< T >::iterator edm::Vector< T >::erase | ( | iterator | first, | |
iterator | last | |||
) | [inline] |
Definition at line 217 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
Vector< T >::iterator edm::Vector< T >::erase | ( | iterator | pos | ) | [inline] |
Definition at line 210 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
void edm::Vector< T >::fillView | ( | ProductID const & | id, | |
std::vector< void const * > & | pointers, | |||
helper_vector & | helpers | |||
) | const [inline] |
Definition at line 230 of file Vector.h.
References edm::Vector< T >::data_, e, h, i, getDQMSummary::key, edm::reftobase::RefVectorHolderBase::push_back(), edm::reftobase::RefVectorHolderBase::reserve(), and edm::Vector< T >::size().
Referenced by edm::fillView().
00233 { 00234 typedef Ref<Vector> ref_type ; 00235 typedef reftobase::RefHolder<ref_type> holder_type; 00236 00237 size_type numElements = this->size(); 00238 pointers.reserve(numElements); 00239 helpers.reserve(numElements); 00240 size_type key = 0; 00241 for(typename base::const_iterator i=data_.begin(), e=data_.end(); i!=e; ++i, ++key) { 00242 00243 pointers.push_back(&*i); 00244 holder_type h(ref_type(id, &*i, key)); 00245 helpers.push_back(&h); 00246 } 00247 }
void edm::Vector< T >::fixup | ( | ) | const [inline, private] |
Definition at line 79 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup_.
Referenced by edm::Vector< T >::back(), edm::Vector< T >::begin(), edm::Vector< T >::data(), edm::Vector< T >::end(), edm::Vector< T >::erase(), edm::Vector< T >::front(), and edm::Vector< T >::operator[]().
Vector< T >::const_reference edm::Vector< T >::front | ( | ) | const [inline] |
Definition at line 193 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
Vector< T >::reference edm::Vector< T >::front | ( | ) | [inline] |
Definition at line 186 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup(), and edm::Vector< T >::touch().
Vector< T > & edm::Vector< T >::operator= | ( | const Vector< T > & | o | ) | [inline] |
Definition at line 100 of file Vector.h.
References edm::Vector< T >::swap(), and pyDBSRunClass::temp.
Vector< T >::const_reference edm::Vector< T >::operator[] | ( | size_type | n | ) | const [inline] |
Definition at line 148 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
Vector< T >::reference edm::Vector< T >::operator[] | ( | size_type | n | ) | [inline] |
Definition at line 142 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::fixup().
void edm::Vector< T >::pop_back | ( | ) | [inline] |
Definition at line 165 of file Vector.h.
References edm::Vector< T >::data_, and edm::Vector< T >::touch().
00165 { 00166 // We have to delete the pointed-to thing, before we squeeze it 00167 // out of the vector... 00168 data_.pop_back(); 00169 touch(); 00170 }
void edm::Vector< T >::push_back | ( | const value_type & | ) |
void edm::Vector< T >::reserve | ( | size_t | n | ) | [inline] |
Vector< T >::size_type edm::Vector< T >::size | ( | void | ) | const [inline] |
Definition at line 132 of file Vector.h.
References edm::Vector< T >::data_.
Referenced by edm::Vector< T >::fillView().
00132 { 00133 return data_.size(); 00134 }
void edm::Vector< T >::swap | ( | Vector< T > & | other | ) | [inline] |
Definition at line 224 of file Vector.h.
References edm::Vector< T >::data_, edm::Vector< T >::fixup_, and std::swap().
Referenced by edm::Vector< T >::operator=(), and edm::swap().
void edm::Vector< T >::touch | ( | ) | [inline, private] |
Definition at line 80 of file Vector.h.
References edm::Vector< T >::fixup_.
Referenced by edm::Vector< T >::back(), edm::Vector< T >::begin(), edm::Vector< T >::end(), edm::Vector< T >::erase(), edm::Vector< T >::front(), and edm::Vector< T >::pop_back().
00080 { fixup_.touch(); }
base edm::Vector< T >::data_ [private] |
Definition at line 77 of file Vector.h.
Referenced by edm::Vector< T >::back(), edm::Vector< T >::begin(), edm::Vector< T >::clear(), edm::Vector< T >::data(), edm::Vector< T >::empty(), edm::Vector< T >::end(), edm::Vector< T >::erase(), edm::Vector< T >::fillView(), edm::Vector< T >::fixup(), edm::Vector< T >::front(), edm::Vector< T >::operator[](), edm::Vector< T >::pop_back(), edm::Vector< T >::reserve(), edm::Vector< T >::size(), and edm::Vector< T >::swap().
helpers::PostReadFixupTrait<T>::type edm::Vector< T >::fixup_ [private] |
Definition at line 78 of file Vector.h.
Referenced by edm::Vector< T >::fixup(), edm::Vector< T >::swap(), and edm::Vector< T >::touch().