CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::EDCollection< T > Class Template Reference

#include <EDCollection.h>

Public Types

typedef std::vector< T >::const_iterator const_iterator
 
typedef std::vector< T >::size_type size_type
 
typedef T value_type
 

Public Member Functions

Tat (size_type i)
 
T const & at (size_type i) const
 
const_iterator begin () const
 
size_type capacity () const
 
 EDCollection ()
 
 EDCollection (EDCollection< T > const &h)
 
 EDCollection (size_type n)
 
 EDCollection (std::vector< T > const &vec)
 
bool empty () const
 
const_iterator end () const
 
EDCollection< T > & operator= (EDCollection< T > const &rhs)
 
Toperator[] (size_type i)
 
T const & operator[] (size_type i) const
 
void push_back (T const &t)
 
void reserve (size_type n)
 
size_type size () const
 
void swap (EDCollection< T > &other)
 
virtual ~EDCollection ()
 

Private Attributes

std::vector< Tobj
 

Detailed Description

template<class T>
class edm::EDCollection< T >

Definition at line 16 of file EDCollection.h.

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef std::vector<T>::const_iterator edm::EDCollection< T >::const_iterator

Definition at line 19 of file EDCollection.h.

◆ size_type

template<class T>
typedef std::vector<T>::size_type edm::EDCollection< T >::size_type

Definition at line 20 of file EDCollection.h.

◆ value_type

template<class T>
typedef T edm::EDCollection< T >::value_type

Definition at line 18 of file EDCollection.h.

Constructor & Destructor Documentation

◆ EDCollection() [1/4]

template<class T >
edm::EDCollection< T >::EDCollection ( )
inline

Definition at line 45 of file EDCollection.h.

45 : obj() {}

◆ EDCollection() [2/4]

template<class T >
edm::EDCollection< T >::EDCollection ( size_type  n)
inlineexplicit

Definition at line 48 of file EDCollection.h.

48 : obj(n) {}

◆ EDCollection() [3/4]

template<class T>
edm::EDCollection< T >::EDCollection ( std::vector< T > const &  vec)
inlineexplicit

Definition at line 51 of file EDCollection.h.

51 : obj(vec) {}

◆ EDCollection() [4/4]

template<class T>
edm::EDCollection< T >::EDCollection ( EDCollection< T > const &  h)
inline

Definition at line 54 of file EDCollection.h.

54 : obj(h.obj) {}

◆ ~EDCollection()

template<class T >
edm::EDCollection< T >::~EDCollection ( )
virtual

Definition at line 57 of file EDCollection.h.

57 {}

Member Function Documentation

◆ at() [1/2]

template<class T >
T & edm::EDCollection< T >::at ( size_type  i)
inline

Definition at line 107 of file EDCollection.h.

107  {
108  return obj.at(i);
109  }

◆ at() [2/2]

template<class T >
T const & edm::EDCollection< T >::at ( size_type  i) const
inline

Definition at line 112 of file EDCollection.h.

112  {
113  return obj.at(i);
114  }

◆ begin()

template<class T >
std::vector< T >::const_iterator edm::EDCollection< T >::begin ( void  ) const
inline

◆ capacity()

template<class T >
std::vector< T >::size_type edm::EDCollection< T >::capacity ( ) const
inline

Definition at line 87 of file EDCollection.h.

87  {
88  return obj.capacity();
89  }

◆ empty()

template<class T >
bool edm::EDCollection< T >::empty ( ) const
inline

Definition at line 77 of file EDCollection.h.

77  {
78  return obj.empty();
79  }

Referenced by ecaldqm::IntegrityTask::runOnElectronicsIdCollection(), and ecaldqm::PNDiodeTask::runOnErrors().

◆ end()

template<class T >
std::vector< T >::const_iterator edm::EDCollection< T >::end ( void  ) const
inline

◆ operator=()

template<class T>
EDCollection< T > & edm::EDCollection< T >::operator= ( EDCollection< T > const &  rhs)
inline

Definition at line 70 of file EDCollection.h.

70  {
71  EDCollection<T> temp(rhs);
72  this->swap(temp);
73  return *this;
74  }

◆ operator[]() [1/2]

template<class T >
T & edm::EDCollection< T >::operator[] ( size_type  i)
inline

Definition at line 97 of file EDCollection.h.

97  {
98  return obj[i];
99  }

◆ operator[]() [2/2]

template<class T >
T const & edm::EDCollection< T >::operator[] ( size_type  i) const
inline

Definition at line 102 of file EDCollection.h.

102  {
103  return obj[i];
104  }

◆ push_back()

template<class T>
void edm::EDCollection< T >::push_back ( T const &  t)
inline

◆ reserve()

template<class T>
void edm::EDCollection< T >::reserve ( size_type  n)
inline

Definition at line 92 of file EDCollection.h.

92  {
93  obj.reserve(n);
94  }

Referenced by sistrip::RawToDigiUnpacker::createDigis(), and sistrip::ExcludedFEDListProducer::produce().

◆ size()

template<class T >
std::vector< T >::size_type edm::EDCollection< T >::size ( void  ) const
inline

◆ swap()

template<class T>
void edm::EDCollection< T >::swap ( EDCollection< T > &  other)
inline

Definition at line 65 of file EDCollection.h.

65  {
66  obj.swap(other.obj);
67  }

Referenced by sistrip::ExcludedFEDListProducer::produce().

Member Data Documentation

◆ obj

template<class T>
std::vector<T> edm::EDCollection< T >::obj
private

Definition at line 41 of file EDCollection.h.

mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::EDCollection::obj
std::vector< T > obj
Definition: EDCollection.h:41
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
trackingPlots.other
other
Definition: trackingPlots.py:1467
h
edm::EDCollection::swap
void swap(EDCollection< T > &other)
Definition: EDCollection.h:65
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644