CMS 3D CMS Logo

EZMgrVL< T > Class Template Reference

#include <Geometry/CaloGeometry/interface/EZMgrVL.h>

List of all members.

Public Types

typedef VecType::const_iterator const_iterator
typedef VecType::const_reference const_reference
typedef VecType::iterator iterator
typedef VecType::reference reference
typedef VecType::size_type size_type
typedef VecType::value_type value_type
typedef std::vector< T > VecType

Public Member Functions

iterator assign (size_type size, const T &t=T()) const
 EZMgrVL (size_type vecSize)
iterator reserve (size_type size) const
iterator resize (size_type size) const
virtual ~EZMgrVL ()

Private Member Functions

 EZMgrVL (const EZMgrVL &)
 EZMgrVL ()
EZMgrVLoperator= (const EZMgrVL &)

Private Attributes

VecType m_vec
const size_type m_vecSize


Detailed Description

template<class T>
class EZMgrVL< T >

Definition at line 8 of file EZMgrVL.h.


Member Typedef Documentation

template<class T>
typedef VecType::const_iterator EZMgrVL< T >::const_iterator

Definition at line 14 of file EZMgrVL.h.

template<class T>
typedef VecType::const_reference EZMgrVL< T >::const_reference

Definition at line 16 of file EZMgrVL.h.

template<class T>
typedef VecType::iterator EZMgrVL< T >::iterator

Definition at line 13 of file EZMgrVL.h.

template<class T>
typedef VecType::reference EZMgrVL< T >::reference

Definition at line 15 of file EZMgrVL.h.

template<class T>
typedef VecType::size_type EZMgrVL< T >::size_type

Definition at line 18 of file EZMgrVL.h.

template<class T>
typedef VecType::value_type EZMgrVL< T >::value_type

Definition at line 17 of file EZMgrVL.h.

template<class T>
typedef std::vector<T> EZMgrVL< T >::VecType

Definition at line 12 of file EZMgrVL.h.


Constructor & Destructor Documentation

template<class T>
EZMgrVL< T >::EZMgrVL ( size_type  vecSize  )  [inline]

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

template<class T>
EZMgrVL< T >::EZMgrVL (  )  [private]

template<class T>
EZMgrVL< T >::EZMgrVL ( const EZMgrVL< T > &   )  [private]


Member Function Documentation

template<class T>
iterator EZMgrVL< T >::assign ( size_type  size,
const T &  t = T() 
) const [inline]

Definition at line 31 of file EZMgrVL.h.

References i, EZMgrVL< T >::m_vec, EZMgrVL< T >::m_vecSize, and t.

Referenced by EZArrayVL< T >::assign(), EZMgrVL< T >::reserve(), EZMgrVL< T >::resize(), and EZArrayVL< T >::resize().

00032       {
00033          assert( ( m_vec.size() + size ) <= m_vecSize ) ;
00034          if( 0 == m_vec.capacity() )
00035          {
00036             m_vec.reserve( m_vecSize ) ;
00037             assert( m_vecSize == m_vec.capacity() ) ;
00038          }
00039          for( size_type  i ( 0 ) ; i != size ; ++i )
00040          {
00041             m_vec.push_back( t ) ;
00042          }
00043          return ( m_vec.end() - size )  ;
00044       }

template<class T>
EZMgrVL& EZMgrVL< T >::operator= ( const EZMgrVL< T > &   )  [private]

template<class T>
iterator EZMgrVL< T >::reserve ( size_type  size  )  const [inline]

Definition at line 28 of file EZMgrVL.h.

References EZMgrVL< T >::assign().

00028 { return assign( size ) ; }

template<class T>
iterator EZMgrVL< T >::resize ( size_type  size  )  const [inline]

Definition at line 29 of file EZMgrVL.h.

References EZMgrVL< T >::assign().

00029 { return assign( size ) ; }


Member Data Documentation

template<class T>
VecType EZMgrVL< T >::m_vec [mutable, private]

Definition at line 53 of file EZMgrVL.h.

Referenced by EZMgrVL< T >::assign().

template<class T>
const size_type EZMgrVL< T >::m_vecSize [private]

Definition at line 52 of file EZMgrVL.h.

Referenced by EZMgrVL< T >::assign().


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