CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 (size_type n)
 
 EDCollection (std::vector< T > const &vec)
 
 EDCollection (EDCollection< T > const &h)
 
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

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

Definition at line 19 of file EDCollection.h.

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

Definition at line 20 of file EDCollection.h.

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

Definition at line 18 of file EDCollection.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file EDCollection.h.

45 : obj() {}
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
edm::EDCollection< T >::EDCollection ( size_type  n)
inlineexplicit

Definition at line 48 of file EDCollection.h.

48 : obj(n) {}
std::vector< T > obj
Definition: EDCollection.h:41
template<class T>
edm::EDCollection< T >::EDCollection ( std::vector< T > const &  vec)
inlineexplicit

Definition at line 51 of file EDCollection.h.

51 : obj(vec) {}
std::vector< T > obj
Definition: EDCollection.h:41
template<class T>
edm::EDCollection< T >::EDCollection ( EDCollection< T > const &  h)
inline

Definition at line 54 of file EDCollection.h.

54 : obj(h.obj) {}
std::vector< T > obj
Definition: EDCollection.h:41
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<class T >
edm::EDCollection< T >::~EDCollection ( )
virtual

Definition at line 57 of file EDCollection.h.

57 {}

Member Function Documentation

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

Definition at line 107 of file EDCollection.h.

References getGTfromDQMFile::obj.

107  {
108  return obj.at(i);
109  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
T const & edm::EDCollection< T >::at ( size_type  i) const
inline

Definition at line 112 of file EDCollection.h.

References getGTfromDQMFile::obj.

112  {
113  return obj.at(i);
114  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
std::vector< T >::const_iterator edm::EDCollection< T >::begin ( void  ) const
inline
template<class T >
std::vector< T >::size_type edm::EDCollection< T >::capacity ( ) const
inline

Definition at line 87 of file EDCollection.h.

References getGTfromDQMFile::obj.

87  {
88  return obj.capacity();
89  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
bool edm::EDCollection< T >::empty ( ) const
inline
template<class T >
std::vector< T >::const_iterator edm::EDCollection< T >::end ( void  ) const
inline
template<class T>
EDCollection< T > & edm::EDCollection< T >::operator= ( EDCollection< T > const &  rhs)
inline

Definition at line 70 of file EDCollection.h.

References edm::swap(), and groupFilesInBlocks::temp.

70  {
71  EDCollection<T> temp(rhs);
72  this->swap(temp);
73  return *this;
74  }
void swap(EDCollection< T > &other)
Definition: EDCollection.h:65
template<class T >
T & edm::EDCollection< T >::operator[] ( size_type  i)
inline

Definition at line 97 of file EDCollection.h.

References mps_fire::i, and getGTfromDQMFile::obj.

97  {
98  return obj[i];
99  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
T const & edm::EDCollection< T >::operator[] ( size_type  i) const
inline

Definition at line 102 of file EDCollection.h.

References mps_fire::i, and getGTfromDQMFile::obj.

102  {
103  return obj[i];
104  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T>
void edm::EDCollection< T >::push_back ( T const &  t)
inline
template<class T>
void edm::EDCollection< T >::reserve ( size_type  n)
inline

Definition at line 92 of file EDCollection.h.

References getGTfromDQMFile::obj.

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

92  {
93  obj.reserve(n);
94  }
std::vector< T > obj
Definition: EDCollection.h:41
template<class T >
std::vector< T >::size_type edm::EDCollection< T >::size ( void  ) const
inline
template<class T>
void edm::EDCollection< T >::swap ( EDCollection< T > &  other)
inline

Definition at line 65 of file EDCollection.h.

References getGTfromDQMFile::obj, and edm::EDCollection< T >::obj.

Referenced by sistrip::ExcludedFEDListProducer::produce(), and edm::swap().

65  {
66  obj.swap(other.obj);
67  }
std::vector< T > obj
Definition: EDCollection.h:41

Member Data Documentation

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

Definition at line 41 of file EDCollection.h.

Referenced by edm::EDCollection< T >::swap().