CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 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.

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

Definition at line 52 of file EDCollection.h.

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

Definition at line 56 of file EDCollection.h.

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

Definition at line 60 of file EDCollection.h.

60 : obj(h.obj) {}
std::vector< T > obj
Definition: EDCollection.h:43
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 63 of file EDCollection.h.

63 {}

Member Function Documentation

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

Definition at line 133 of file EDCollection.h.

References getGTfromDQMFile::obj.

133  {
134  return obj.at(i);
135  }
int i
Definition: DBlmapReader.cc:9
std::vector< T > obj
Definition: EDCollection.h:43
template<class T >
T const & edm::EDCollection< T >::at ( size_type  i) const
inline

Definition at line 140 of file EDCollection.h.

References getGTfromDQMFile::obj.

140  {
141  return obj.at(i);
142  }
int i
Definition: DBlmapReader.cc:9
std::vector< T > obj
Definition: EDCollection.h:43
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 105 of file EDCollection.h.

References getGTfromDQMFile::obj.

105  {
106  return obj.capacity();
107  }
std::vector< T > obj
Definition: EDCollection.h:43
template<class T >
bool edm::EDCollection< T >::empty ( ) const
inline

Definition at line 91 of file EDCollection.h.

References getGTfromDQMFile::obj.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

91  {
92  return obj.empty();
93  }
std::vector< T > obj
Definition: EDCollection.h:43
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 82 of file EDCollection.h.

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

82  {
83  EDCollection<T> temp(rhs);
84  this->swap(temp);
85  return *this;
86  }
void swap(EDCollection< T > &other)
Definition: EDCollection.h:75
template<class T >
T & edm::EDCollection< T >::operator[] ( size_type  i)
inline

Definition at line 119 of file EDCollection.h.

References i, and getGTfromDQMFile::obj.

119  {
120  return obj[i];
121  }
int i
Definition: DBlmapReader.cc:9
std::vector< T > obj
Definition: EDCollection.h:43
template<class T >
T const & edm::EDCollection< T >::operator[] ( size_type  i) const
inline

Definition at line 126 of file EDCollection.h.

References i, and getGTfromDQMFile::obj.

126  {
127  return obj[i];
128  }
int i
Definition: DBlmapReader.cc:9
std::vector< T > obj
Definition: EDCollection.h:43
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 112 of file EDCollection.h.

References getGTfromDQMFile::obj.

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

112  {
113  obj.reserve(n);
114  }
std::vector< T > obj
Definition: EDCollection.h:43
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 75 of file EDCollection.h.

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

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

75  {
76  obj.swap(other.obj);
77  }
std::vector< T > obj
Definition: EDCollection.h:43

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 >::swap().