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

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

Definition at line 51 of file EDCollection.h.

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

Definition at line 55 of file EDCollection.h.

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

Definition at line 59 of file EDCollection.h.

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

Definition at line 62 of file EDCollection.h.

62 {}

Member Function Documentation

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

Definition at line 132 of file EDCollection.h.

References getGTfromDQMFile::obj.

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

Definition at line 139 of file EDCollection.h.

References getGTfromDQMFile::obj.

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

References getGTfromDQMFile::obj.

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

Definition at line 90 of file EDCollection.h.

References getGTfromDQMFile::obj.

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

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

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

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

Definition at line 118 of file EDCollection.h.

References i, and getGTfromDQMFile::obj.

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

Definition at line 125 of file EDCollection.h.

References i, and getGTfromDQMFile::obj.

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

References getGTfromDQMFile::obj.

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

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

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

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

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

Member Data Documentation

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

Definition at line 42 of file EDCollection.h.

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