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

std::vector< T > const & as_vector () const
 
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

◆ 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 46 of file EDCollection.h.

46 : obj() {}
std::vector< T > obj
Definition: EDCollection.h:42

◆ EDCollection() [2/4]

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

Definition at line 49 of file EDCollection.h.

49 : obj(n) {}
std::vector< T > obj
Definition: EDCollection.h:42

◆ EDCollection() [3/4]

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

Definition at line 52 of file EDCollection.h.

52 : obj(vec) {}
std::vector< T > obj
Definition: EDCollection.h:42

◆ EDCollection() [4/4]

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

Definition at line 55 of file EDCollection.h.

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

◆ ~EDCollection()

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

Definition at line 58 of file EDCollection.h.

58 {}

Member Function Documentation

◆ as_vector()

template<class T>
std::vector<T> const& edm::EDCollection< T >::as_vector ( ) const
inline

Definition at line 39 of file EDCollection.h.

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

39 { return obj; }
std::vector< T > obj
Definition: EDCollection.h:42

◆ at() [1/2]

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

Definition at line 108 of file EDCollection.h.

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

108  {
109  return obj.at(i);
110  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ at() [2/2]

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

Definition at line 113 of file EDCollection.h.

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

113  {
114  return obj.at(i);
115  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ 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 88 of file EDCollection.h.

References getGTfromDQMFile::obj.

88  {
89  return obj.capacity();
90  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ empty()

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

◆ 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 71 of file EDCollection.h.

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

71  {
72  EDCollection<T> temp(rhs);
73  this->swap(temp);
74  return *this;
75  }
void swap(EDCollection< T > &other)
Definition: EDCollection.h:66

◆ operator[]() [1/2]

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

Definition at line 98 of file EDCollection.h.

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

98  {
99  return obj[i];
100  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ operator[]() [2/2]

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

Definition at line 103 of file EDCollection.h.

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

103  {
104  return obj[i];
105  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ 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 93 of file EDCollection.h.

References dqmiodumpmetadata::n, and getGTfromDQMFile::obj.

93  {
94  obj.reserve(n);
95  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ size()

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

Definition at line 83 of file EDCollection.h.

References getGTfromDQMFile::obj.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and EcalDetIdToBeRecoveredProducer::produce().

83  {
84  return obj.size();
85  }
std::vector< T > obj
Definition: EDCollection.h:42

◆ swap()

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

Definition at line 66 of file EDCollection.h.

References getGTfromDQMFile::obj, and trackingPlots::other.

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

Member Data Documentation

◆ obj

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

Definition at line 42 of file EDCollection.h.

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