CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::EDCollection< T > Class Template Reference

#include <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 & at (size_type i)
T const & at (size_type i) const
const_iterator begin () const
size_type capacity () const
 EDCollection ()
 EDCollection (EDCollection< T > const &h)
 EDCollection (size_type n)
 EDCollection (std::vector< T > const &vec)
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.

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

Definition at line 52 of file EDCollection.h.

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

Definition at line 56 of file EDCollection.h.

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

Definition at line 60 of file EDCollection.h.

: obj(h.obj) {}
template<class T >
edm::EDCollection< T >::~EDCollection ( ) [virtual]

Definition at line 63 of file EDCollection.h.

{}

Member Function Documentation

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

Definition at line 133 of file EDCollection.h.

References VarParsing::obj.

                                 {
    return obj.at(i);
  }
template<class T >
T const & edm::EDCollection< T >::at ( size_type  i) const [inline]

Definition at line 140 of file EDCollection.h.

References VarParsing::obj.

                                       {
    return obj.at(i);
  }
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 VarParsing::obj.

                                  {
    return obj.capacity();
  }
template<class T >
bool edm::EDCollection< T >::empty ( ) const [inline]

Definition at line 91 of file EDCollection.h.

References VarParsing::obj.

                               {
    return obj.empty();
  }
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 cond::rpcobtemp::temp.

                                                       {
    EDCollection<T> temp(rhs);
    this->swap(temp);
    return *this;
  }
template<class T >
T & edm::EDCollection< T >::operator[] ( size_type  i) [inline]

Definition at line 119 of file EDCollection.h.

References i, and VarParsing::obj.

                                         {
    return obj[i];
  }
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 VarParsing::obj.

                                               {
    return obj[i];
  }
template<class T >
void edm::EDCollection< T >::push_back ( T const &  t) [inline]
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]
template<class T >
void edm::EDCollection< T >::swap ( EDCollection< T > &  other) [inline]

Definition at line 75 of file EDCollection.h.

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

Referenced by edm::swap().

                                              {
    obj.swap(other.obj);
  }

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