CMS 3D CMS Logo

edm::EDCollection< T > Class Template Reference

#include <DataFormats/Common/interface/EDCollection.h>

List of all members.

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

T const & at (size_type i) const
T & at (size_type i)
const_iterator begin () const
size_type capacity () const
 EDCollection (EDCollection< T > const &h)
 EDCollection (std::vector< T > const &vec)
 EDCollection (size_type n)
 EDCollection ()
bool empty () const
const_iterator end () const
EDCollection< T > & operator= (EDCollection< T > const &rhs)
T const & operator[] (size_type i) const
T & operator[] (size_type i)
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< T > obj


Detailed Description

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

Definition at line 17 of file EDCollection.h.


Member Typedef Documentation

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

Definition at line 20 of file EDCollection.h.

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

Definition at line 21 of file EDCollection.h.

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

Definition at line 19 of file EDCollection.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file EDCollection.h.

00048 : obj() {}

template<class T>
edm::EDCollection< T >::EDCollection ( size_type  n  )  [inline, explicit]

Definition at line 52 of file EDCollection.h.

00052 : obj(n) {}

template<class T>
edm::EDCollection< T >::EDCollection ( std::vector< T > const &  vec  )  [inline, explicit]

Definition at line 56 of file EDCollection.h.

00056 : obj(vec) {}

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

Definition at line 60 of file EDCollection.h.

00060 : obj(h.obj) {}

template<class T>
edm::EDCollection< T >::~EDCollection (  )  [inline, virtual]

Definition at line 63 of file EDCollection.h.

00063 {}


Member Function Documentation

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

Definition at line 140 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00140                                        {
00141     return obj.at(i);
00142   }

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

Definition at line 133 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00133                                  {
00134     return obj.at(i);
00135   }

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

Definition at line 147 of file EDCollection.h.

References edm::EDCollection< T >::obj.

Referenced by EcalTBDaqFormatter::DecodeMEM(), and EcalTB07DaqFormatter::DecodeMEM().

00147                                {
00148     return obj.begin();
00149   }

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

Definition at line 105 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00105                                   {
00106     return obj.capacity();
00107   }

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

Definition at line 91 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00091                                {
00092     return obj.empty();
00093   }

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

Definition at line 154 of file EDCollection.h.

References edm::EDCollection< T >::obj.

Referenced by EcalTBDaqFormatter::DecodeMEM(), and EcalTB07DaqFormatter::DecodeMEM().

00154                              {
00155     return obj.end();
00156   }

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

Definition at line 82 of file EDCollection.h.

References edm::EDCollection< T >::swap(), and pyDBSRunClass::temp.

00082                                                        {
00083     EDCollection<T> temp(rhs);
00084     this->swap(temp);
00085     return *this;
00086   }

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

Definition at line 126 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00126                                                {
00127     return obj[i];
00128   }

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

Definition at line 119 of file EDCollection.h.

References edm::EDCollection< T >::obj.

00119                                          {
00120     return obj[i];
00121   }

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

Definition at line 68 of file EDCollection.h.

References edm::EDCollection< T >::obj.

Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().

00068                                        {
00069     obj.push_back(t);
00070   }

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

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

Definition at line 98 of file EDCollection.h.

References edm::EDCollection< T >::obj.

Referenced by EcalTBDaqFormatter::DecodeMEM(), and EcalTB07DaqFormatter::DecodeMEM().

00098                               {
00099     return obj.size();
00100   }

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

Definition at line 75 of file EDCollection.h.

References edm::EDCollection< T >::obj.

Referenced by edm::EDCollection< T >::operator=(), and edm::swap().

00075                                               {
00076     obj.swap(other.obj);
00077   }


Member Data Documentation

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

Definition at line 43 of file EDCollection.h.

Referenced by edm::EDCollection< T >::at(), edm::EDCollection< T >::begin(), edm::EDCollection< T >::capacity(), edm::EDCollection< T >::empty(), edm::EDCollection< T >::end(), edm::EDCollection< T >::operator[](), edm::EDCollection< T >::push_back(), edm::EDCollection< T >::size(), and edm::EDCollection< T >::swap().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:40:35 2009 for CMSSW by  doxygen 1.5.4